Commit d9c0dbb9 authored by Stephane Nicoll's avatar Stephane Nicoll

Polish "Polish some Collectors"

Closes gh-13727
parent 422a436d
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment