jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1380837 - /jmeter/trunk/src/functions/org/apache/jmeter/functions/SplitFunction.java
Date Tue, 04 Sep 2012 20:00:49 GMT
Author: pmouawad
Date: Tue Sep  4 20:00:49 2012
New Revision: 1380837

URL: http://svn.apache.org/viewvc?rev=1380837&view=rev
Log:
Use Integer.toString instead of concat

Modified:
    jmeter/trunk/src/functions/org/apache/jmeter/functions/SplitFunction.java

Modified: jmeter/trunk/src/functions/org/apache/jmeter/functions/SplitFunction.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/functions/org/apache/jmeter/functions/SplitFunction.java?rev=1380837&r1=1380836&r2=1380837&view=diff
==============================================================================
--- jmeter/trunk/src/functions/org/apache/jmeter/functions/SplitFunction.java (original)
+++ jmeter/trunk/src/functions/org/apache/jmeter/functions/SplitFunction.java Tue Sep  4 20:00:49
2012
@@ -96,7 +96,7 @@ public class SplitFunction extends Abstr
         String parts[] = JOrphanUtils.split(stringToSplit, splitString, "?");// $NON-NLS-1$
 
         vars.put(varNamePrefix, stringToSplit);
-        vars.put(varNamePrefix + "_n", "" + parts.length);// $NON-NLS-1$ // $NON-NLS-2$
+        vars.put(varNamePrefix + "_n", Integer.toString(parts.length));// $NON-NLS-1$ 
         for (int i = 1; i <= parts.length; i++) {
             if (log.isDebugEnabled()){
                 log.debug(parts[i-1]);



Mime
View raw message