Consistent parameter declaration order

This commit is contained in:
Sam Brannen
2025-03-21 11:13:03 +01:00
parent 66c94bb4a2
commit 3e788e4ca1

View File

@@ -464,7 +464,7 @@ public abstract class AnnotatedElementUtils {
AnnotatedElement element, Class<A> 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 <A extends Annotation> Set<A> findMergedRepeatableAnnotations(AnnotatedElement element,
Class<A> 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) {