Commit a7872f47 authored by Andy Wilkinson's avatar Andy Wilkinson

Minimize Instantiator's public API

See gh-27043
parent 5088927f
...@@ -114,7 +114,7 @@ public class Instantiator<T> { ...@@ -114,7 +114,7 @@ public class Instantiator<T> {
return instantiate(types.stream().map((type) -> TypeSupplier.forType(type))); return instantiate(types.stream().map((type) -> TypeSupplier.forType(type)));
} }
public List<T> instantiate(Stream<TypeSupplier> typeSuppliers) { private List<T> instantiate(Stream<TypeSupplier> typeSuppliers) {
List<T> instances = typeSuppliers.map(this::instantiate).collect(Collectors.toList()); List<T> instances = typeSuppliers.map(this::instantiate).collect(Collectors.toList());
AnnotationAwareOrderComparator.sort(instances); AnnotationAwareOrderComparator.sort(instances);
return Collections.unmodifiableList(instances); return Collections.unmodifiableList(instances);
......
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