diff --git a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversalTest.java b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversalTest.java index 7e2a38da8be..c16421b1514 100644 --- a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversalTest.java +++ b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversalTest.java @@ -168,7 +168,7 @@ else if (stepMethod.getName().equals("to") || stepMethod.getName().equals("from" } // remove duplicates in argument[1] if any arguments[1] = Arrays.stream((String[]) arguments[1]).distinct().toArray(String[]::new); - list.addAll(Arrays.stream((String[]) arguments[1]).collect(Collectors.toList())); + list.addAll(Arrays.asList((String[]) arguments[1])); } else { for (int i = 0; i < stepMethod.getParameterTypes().length; i++) { final Class type = stepMethod.getParameterTypes()[i];