|
|
@ -1,5 +1,5 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Copyright 2012-2017 the original author or authors.
|
|
|
|
* Copyright 2012-2018 the original author or authors.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
@ -48,7 +48,7 @@ public class AutoConfigurations extends Configurations implements Ordered {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
protected Collection<Class<?>> sort(Collection<Class<?>> classes) {
|
|
|
|
protected Collection<Class<?>> sort(Collection<Class<?>> classes) {
|
|
|
|
List<String> names = classes.stream().map(Class::getName)
|
|
|
|
List<String> names = classes.stream().map(Class::getName)
|
|
|
|
.collect(Collectors.toCollection(ArrayList::new));
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
List<String> sorted = SORTER.getInPriorityOrder(names);
|
|
|
|
List<String> sorted = SORTER.getInPriorityOrder(names);
|
|
|
|
return sorted.stream()
|
|
|
|
return sorted.stream()
|
|
|
|
.map((className) -> ClassUtils.resolveClassName(className, null))
|
|
|
|
.map((className) -> ClassUtils.resolveClassName(className, null))
|
|
|
|