mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-05-02 20:09:31 +01:00
Use Stream#toArray in TestCompiler
Closes gh-25453
This commit is contained in:
+1
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user