jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1381352 - /jmeter/trunk/src/junit/org/apache/jmeter/protocol/java/control/gui/JUnitTestSamplerGui.java
Date Wed, 05 Sep 2012 20:33:08 GMT
Author: pmouawad
Date: Wed Sep  5 20:33:08 2012
New Revision: 1381352

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

Modified:
    jmeter/trunk/src/junit/org/apache/jmeter/protocol/java/control/gui/JUnitTestSamplerGui.java

Modified: jmeter/trunk/src/junit/org/apache/jmeter/protocol/java/control/gui/JUnitTestSamplerGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/junit/org/apache/jmeter/protocol/java/control/gui/JUnitTestSamplerGui.java?rev=1381352&r1=1381351&r2=1381352&view=diff
==============================================================================
--- jmeter/trunk/src/junit/org/apache/jmeter/protocol/java/control/gui/JUnitTestSamplerGui.java
(original)
+++ jmeter/trunk/src/junit/org/apache/jmeter/protocol/java/control/gui/JUnitTestSamplerGui.java
Wed Sep  5 20:33:08 2012
@@ -80,9 +80,7 @@ implements ChangeListener, ActionListene
             String parts[] = ucp.split(File.pathSeparator);
             paths = new String[parts.length+1];
             paths[0] = JMeterUtils.getJMeterHome() + "/lib/junit/"; //$NON-NLS-1$
-            for(int i=0; i < parts.length; i++){
-                paths[i+1]=parts[i];
-            }
+            System.arraycopy(parts, 0, paths, 1, parts.length);
         } else {
             paths = new String[]{
                 JMeterUtils.getJMeterHome() + "/lib/junit/" //$NON-NLS-1$



Mime
View raw message