We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62782e5 commit 8380031Copy full SHA for 8380031
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java
@@ -1304,8 +1304,7 @@ private static void close(ApplicationContext context) {
1304
}
1305
1306
private static <E> Set<E> asUnmodifiableOrderedSet(Collection<E> elements) {
1307
- List<E> list = new ArrayList<>();
1308
- list.addAll(elements);
+ List<E> list = new ArrayList<>(elements);
1309
list.sort(AnnotationAwareOrderComparator.INSTANCE);
1310
return new LinkedHashSet<>(list);
1311
0 commit comments