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:
committed by
Phillip Webb
parent
04fdec6f8b
commit
4a189bdee7
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user