jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1700118 - /jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassFinder.java
Date Sun, 30 Aug 2015 13:14:39 GMT
Author: fschumacher
Date: Sun Aug 30 13:14:39 2015
New Revision: 1700118

URL: http://svn.apache.org/r1700118
Log:
Use Collections#addAll instead of adding elements by hand. Part of patch (part 2) from Graham
Russell.

Bugzilla Id: 57981

Modified:
    jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassFinder.java

Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassFinder.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassFinder.java?rev=1700118&r1=1700117&r2=1700118&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassFinder.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassFinder.java Sun Aug 30 13:14:39
2015
@@ -26,6 +26,7 @@ import java.lang.reflect.Method;
 import java.lang.reflect.Modifier;
 import java.util.ArrayList;
 import java.util.Arrays;
+import java.util.Collections;
 import java.util.Enumeration;
 import java.util.HashSet;
 import java.util.List;
@@ -180,9 +181,7 @@ public final class ClassFinder {
                             return name.endsWith(DOT_JAR);
                         }
                     });
-                    for (int x = 0; x < jars.length; x++) {
-                        fullList.add(jars[x]);
-                    }
+                    Collections.addAll(fullList, jars);
                 }
             }
         }



Mime
View raw message