Author: fschumacher
Date: Mon Feb 12 16:30:29 2018
New Revision: 1824010

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

Part of #356 on Github. Contributed by Graham Russell (graham at ham1.co.uk)

Modified:
    
jmeter/trunk/src/components/org/apache/jmeter/control/gui/ModuleControllerGui.java

Modified: 
jmeter/trunk/src/components/org/apache/jmeter/control/gui/ModuleControllerGui.java
URL: 
http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/control/gui/ModuleControllerGui.java?rev=1824010&r1=1824009&r2=1824010&view=diff
==============================================================================
--- 
jmeter/trunk/src/components/org/apache/jmeter/control/gui/ModuleControllerGui.java
 (original)
+++ 
jmeter/trunk/src/components/org/apache/jmeter/control/gui/ModuleControllerGui.java
 Mon Feb 12 16:30:29 2018
@@ -346,9 +346,7 @@ public class ModuleControllerGui extends
         TreeNode[] filteredPath = new TreeNode[path.length-1];
         
         //ignore first element of path - WorkBench, (why WorkBench is 
appearing in the path ???)
-        for (int i = 1; i < path.length; i++){
-            filteredPath[i-1] = path[i];
-        }
+        System.arraycopy(path, 1, filteredPath, 0, path.length - 1);
         
         DefaultMutableTreeNode root = (DefaultMutableTreeNode) 
moduleToRunTreeNodes.getModel().getRoot();
         //treepath of test plan tree and module to run tree cannot be compared 
directly - moduleToRunTreeModel.getPathToRoot()


Reply via email to