From 3eb2f5e476e6afbac43382540624d66e40862839 Mon Sep 17 00:00:00 2001 From: igor-suhorukov Date: Sat, 29 Dec 2018 23:52:48 +0300 Subject: [PATCH] Replace Collections sort with list sort() method Closes gh-15585 --- .../AutoConfigureAnnotationProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-autoconfigure-processor/src/main/java/org/springframework/boot/autoconfigureprocessor/AutoConfigureAnnotationProcessor.java b/spring-boot-project/spring-boot-tools/spring-boot-autoconfigure-processor/src/main/java/org/springframework/boot/autoconfigureprocessor/AutoConfigureAnnotationProcessor.java index 64b1741b3f..7a43a3caa6 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-autoconfigure-processor/src/main/java/org/springframework/boot/autoconfigureprocessor/AutoConfigureAnnotationProcessor.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-autoconfigure-processor/src/main/java/org/springframework/boot/autoconfigureprocessor/AutoConfigureAnnotationProcessor.java @@ -285,7 +285,7 @@ public class AutoConfigureAnnotationProcessor extends AbstractProcessor { @Override public List getValues(AnnotationMirror annotation) { List values = super.getValues(annotation); - Collections.sort(values, this::compare); + values.sort(this::compare); return values; }