jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1381341 - /jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java
Date Wed, 05 Sep 2012 20:29:07 GMT
Author: pmouawad
Date: Wed Sep  5 20:29:07 2012
New Revision: 1381341

URL: http://svn.apache.org/viewvc?rev=1381341&view=rev
Log:
Use System.arrayCopy

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java?rev=1381341&r1=1381340&r2=1381341&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java Wed Sep  5 20:29:07 2012
@@ -318,9 +318,7 @@ public class JMeterUtils implements Unit
         if (p != null) {
             String[] paths = p.split(";"); // $NON-NLS-1$
             result = new String[paths.length + 1];
-            for (int i = 1; i < result.length; i++) {
-                result[i] = paths[i - 1];
-            }
+            System.arraycopy(paths, 0, result, 1, paths.length);
         }
         result[0] = getJMeterHome() + "/lib/ext"; // $NON-NLS-1$
         return result;



Mime
View raw message