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 extends Annotation> 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 extends Annotation> 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 extends Annotation> containerType, Class extends Annotation> annotationType) {
+ Class extends Annotation> annotationType, @Nullable Class extends Annotation> containerType) {
RepeatableContainers repeatableContainers;
if (containerType == null) {
@@ -798,7 +798,7 @@ public abstract class AnnotatedElementUtils {
}
private static MergedAnnotations findRepeatableAnnotations(AnnotatedElement element,
- @Nullable Class extends Annotation> containerType, Class extends Annotation> annotationType) {
+ Class extends Annotation> annotationType, @Nullable Class extends Annotation> containerType) {
RepeatableContainers repeatableContainers;
if (containerType == null) {