@ -1,5 +1,5 @@
@@ -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" ) ;
* you may not use this file except in compliance with the License .
@ -16,7 +16,6 @@
@@ -16,7 +16,6 @@
package org.springframework.boot.autoconfigure ;
import java.util.ArrayList ;
import java.util.Arrays ;
import java.util.Collection ;
import java.util.List ;
@ -48,11 +47,11 @@ public class AutoConfigurations extends Configurations implements Ordered {
@@ -48,11 +47,11 @@ public class AutoConfigurations extends Configurations implements Ordered {
@Override
protected Collection < Class < ? > > sort ( Collection < Class < ? > > classes ) {
List < String > names = classes . stream ( ) . map ( Class : : getName )
. collect ( Collectors . toCollection ( ArrayList : : new ) ) ;
. collect ( Collectors . toList ( ) ) ;
List < String > sorted = SORTER . getInPriorityOrder ( names ) ;
return sorted . stream ( )
. map ( ( className ) - > ClassUtils . resolveClassName ( className , null ) )
. collect ( Collectors . toCollection ( ArrayList : : new ) ) ;
. collect ( Collectors . toList ( ) ) ;
}
@Override