From efce40c3912ecb2455a66cb4435c7a0dcc035167 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Mon, 4 May 2015 14:14:48 +0200 Subject: [PATCH] Polish internal Javadoc for AnnotatedElementUtils Issue: SPR-11514 --- .../core/annotation/AnnotatedElementUtils.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 e4554b24e6..0d80658fc8 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 @@ -189,7 +189,7 @@ public class AnnotatedElementUtils { public static AnnotationAttributes findAnnotationAttributes(AnnotatedElement element, Class annotationType) { Assert.notNull(annotationType, "annotationType must not be null"); - return findAnnotationAttributes(element, annotationType.getName(), true, true, true, true, false, false); + return findAnnotationAttributes(element, annotationType.getName()); } /** @@ -209,7 +209,7 @@ public class AnnotatedElementUtils { * not found */ public static AnnotationAttributes findAnnotationAttributes(AnnotatedElement element, String annotationType) { - return findAnnotationAttributes(element, annotationType, true, true, true, true, false, false); + return findAnnotationAttributes(element, annotationType, false, false); } /** @@ -697,6 +697,14 @@ public class AnnotatedElementUtils { } } + /** + * {@link Processor} that gets the {@code AnnotationAttributes} for the + * target annotation during the {@link #process} phase and then merges + * annotation attributes from lower levels in the annotation hierarchy + * during the {@link #postProcess} phase. + * @see AnnotationUtils#getAnnotationAttributes(Annotation) + * @since 4.2 + */ private static class MergeAnnotationAttributesProcessor implements Processor { private final boolean classValuesAsString;