jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1795052 - /jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassFinder.java
Date Sat, 13 May 2017 12:00:11 GMT
Author: fschumacher
Date: Sat May 13 12:00:10 2017
New Revision: 1795052

URL: http://svn.apache.org/viewvc?rev=1795052&view=rev
Log:
Collect the fixed entries in the list.

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=1795052&r1=1795051&r2=1795052&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassFinder.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassFinder.java Sat May 13 12:00:10
2017
@@ -33,6 +33,7 @@ import java.util.Locale;
 import java.util.Set;
 import java.util.StringTokenizer;
 import java.util.TreeSet;
+import java.util.stream.Collectors;
 import java.util.zip.ZipEntry;
 import java.util.zip.ZipFile;
 
@@ -265,9 +266,9 @@ public final class ClassFinder {
         }
     
         // Find all jars in the search path
-        List<String> strPathsOrJars = Arrays.asList(addJarsInPath(searchPathsOrJars));
-        strPathsOrJars.forEach(ClassFinder::fixPathEntry);
-    
+        List<String> strPathsOrJars = Arrays.asList(addJarsInPath(searchPathsOrJars)).stream()
+                .map(ClassFinder::fixPathEntry).collect(Collectors.toList());
+
         // Now eliminate any classpath entries that do not "match" the search
         List<String> listPaths = getClasspathMatches(strPathsOrJars);
         if (log.isDebugEnabled()) {



Mime
View raw message