Replace Collections.sort() with direct sort call

Replace existing `Collections.sort(...)` calls with `.sort(...)`
directly on the collection instance.

See gh-9781
This commit is contained in:
Emanuel Campolo
2017-07-18 11:51:31 -03:00
committed by Phillip Webb
parent 04fdec6f8b
commit 4a189bdee7
15 changed files with 16 additions and 20 deletions

View File

@@ -60,7 +60,7 @@ class AutoConfigurationSorter {
// Initially sort alphabetically
Collections.sort(orderedClassNames);
// Then sort by order
Collections.sort(orderedClassNames, new Comparator<String>() {
orderedClassNames.sort(new Comparator<String>() {
@Override
public int compare(String o1, String o2) {