Browse Source

Use Stream#toArray in TestCompiler

Closes gh-25453
pull/25458/head
XenoAmess 4 years ago committed by GitHub
parent
commit
b6c463676a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      spring-context-indexer/src/test/java/org/springframework/context/index/test/TestCompiler.java

3
spring-context-indexer/src/test/java/org/springframework/context/index/test/TestCompiler.java

@ -63,8 +63,7 @@ public class TestCompiler { @@ -63,8 +63,7 @@ public class TestCompiler {
public TestCompilationTask getTask(Class<?>... types) {
List<String> names = Arrays.stream(types).map(Class::getName).collect(Collectors.toList());
return getTask(names.toArray(new String[names.size()]));
return getTask(Arrays.stream(types).map(Class::getName).toArray(String[]::new));
}
public TestCompilationTask getTask(String... types) {

Loading…
Cancel
Save