diff --git a/spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java b/spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java index b79a97b47d..35ed4562a6 100644 --- a/spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java +++ b/spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java @@ -464,7 +464,7 @@ public abstract class AnnotatedElementUtils { AnnotatedElement element, Class annotationType, @Nullable Class containerType) { - return getRepeatableAnnotations(element, containerType, annotationType) + return getRepeatableAnnotations(element, annotationType, containerType) .stream(annotationType) .collect(MergedAnnotationCollectors.toAnnotationSet()); } @@ -760,7 +760,7 @@ public abstract class AnnotatedElementUtils { public static Set findMergedRepeatableAnnotations(AnnotatedElement element, Class annotationType, @Nullable Class containerType) { - return findRepeatableAnnotations(element, containerType, annotationType) + return findRepeatableAnnotations(element, annotationType, containerType) .stream(annotationType) .sorted(highAggregateIndexesFirst()) .collect(MergedAnnotationCollectors.toAnnotationSet()); @@ -771,7 +771,7 @@ public abstract class AnnotatedElementUtils { } private static MergedAnnotations getRepeatableAnnotations(AnnotatedElement element, - @Nullable Class containerType, Class annotationType) { + Class annotationType, @Nullable Class containerType) { RepeatableContainers repeatableContainers; if (containerType == null) { @@ -798,7 +798,7 @@ public abstract class AnnotatedElementUtils { } private static MergedAnnotations findRepeatableAnnotations(AnnotatedElement element, - @Nullable Class containerType, Class annotationType) { + Class annotationType, @Nullable Class containerType) { RepeatableContainers repeatableContainers; if (containerType == null) {