Closes #2521 - Fix code smells Stream.collect(Collectors.toList()) to Stream.toList()
This commit is contained in:
parent
9304fdedd9
commit
f875de1fa7
|
@ -82,7 +82,7 @@ public class ServiceProviderExtractor {
|
|||
List<Class<?>> serviceProviders, Map<Class<?>, Object> enclosingTestInstancesByClass) {
|
||||
return serviceProviders.stream()
|
||||
.map(clz -> instantiateClass(clz, enclosingTestInstancesByClass))
|
||||
.collect(Collectors.toList());
|
||||
.toList();
|
||||
}
|
||||
|
||||
private static Object instantiateClass(
|
||||
|
|
Loading…
Reference in New Issue