This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-bcel.git


The following commit(s) were added to refs/heads/master by this push:
     new 837eb59  Use Stream.of().
837eb59 is described below

commit 837eb5956f44c39e8603fcd0be20e384adc37e68
Author: Gary Gregory <gardgreg...@gmail.com>
AuthorDate: Thu Jul 1 14:19:52 2021 -0400

    Use Stream.of().
---
 src/test/java/org/apache/bcel/generic/JdkGenericDumpTestCase.java | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/test/java/org/apache/bcel/generic/JdkGenericDumpTestCase.java 
b/src/test/java/org/apache/bcel/generic/JdkGenericDumpTestCase.java
index 7bcf30e..021d472 100644
--- a/src/test/java/org/apache/bcel/generic/JdkGenericDumpTestCase.java
+++ b/src/test/java/org/apache/bcel/generic/JdkGenericDumpTestCase.java
@@ -34,7 +34,6 @@ import java.nio.file.Path;
 import java.nio.file.PathMatcher;
 import java.nio.file.SimpleFileVisitor;
 import java.nio.file.attribute.BasicFileAttributes;
-import java.util.Arrays;
 import java.util.Enumeration;
 import java.util.HashSet;
 import java.util.List;
@@ -51,11 +50,11 @@ import org.apache.bcel.util.ModularRuntimeImage;
 import org.apache.commons.lang3.JavaVersion;
 import org.apache.commons.lang3.StringUtils;
 import org.apache.commons.lang3.SystemUtils;
-
-import com.sun.jna.platform.win32.Advapi32Util;
 import org.junit.jupiter.params.ParameterizedTest;
 import org.junit.jupiter.params.provider.MethodSource;
 
+import com.sun.jna.platform.win32.Advapi32Util;
+
 /**
  * Test that the generic dump() methods work on the JDK classes Reads each 
class into an instruction list and then dumps
  * the instructions. The output bytes should be the same as the input.
@@ -168,7 +167,7 @@ public class JdkGenericDumpTestCase {
         if (StringUtils.isEmpty(path)) {
             return Stream.empty();
         }
-        return Arrays.stream(path.split(File.pathSeparator));
+        return Stream.of(path.split(File.pathSeparator));
     }
 
     private static Stream<String> findJavaHomesOnWindows(final String 
keyJavaHome, final String[] keys) {

Reply via email to