jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1381350 - /jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
Date Wed, 05 Sep 2012 20:32:12 GMT
Author: pmouawad
Date: Wed Sep  5 20:32:11 2012
New Revision: 1381350

URL: http://svn.apache.org/viewvc?rev=1381350&view=rev
Log:
use indexOf(char)

Modified:
    jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java

Modified: jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java?rev=1381350&r1=1381349&r2=1381350&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
(original)
+++ jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
Wed Sep  5 20:32:11 2012
@@ -846,7 +846,7 @@ public class LDAPExtSampler extends Abst
             final int indexOfLDAPErrCode = returnData.indexOf("LDAP: error code");
             if (indexOfLDAPErrCode >= 0) {
                 res.setResponseMessage(returnData.substring(indexOfLDAPErrCode + 21, returnData
-                        .indexOf("]"))); // $NON-NLS-1$
+                        .indexOf(']'))); // $NON-NLS-1$
                 res.setResponseCode(returnData.substring(indexOfLDAPErrCode + 17, indexOfLDAPErrCode
+ 19));
             } else {
                 res.setResponseMessage(returnData);



Mime
View raw message