Polish "Polish some Collectors"

Closes gh-13727
pull/13795/merge
Stephane Nicoll 6 years ago
parent 422a436df1
commit d9c0dbb99d

@ -16,6 +16,7 @@
package org.springframework.boot.autoconfigure;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
@ -51,7 +52,7 @@ public class AutoConfigurations extends Configurations implements Ordered {
List<String> sorted = SORTER.getInPriorityOrder(names);
return sorted.stream()
.map((className) -> ClassUtils.resolveClassName(className, null))
.collect(Collectors.toList());
.collect(Collectors.toCollection(ArrayList::new));
}
@Override

Loading…
Cancel
Save