Polish internal Javadoc for AnnotatedElementUtils

Issue: SPR-11514
master
Sam Brannen 10 years ago
parent 10d13892ed
commit efce40c391
  1. 12
      spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java

@ -189,7 +189,7 @@ public class AnnotatedElementUtils {
public static AnnotationAttributes findAnnotationAttributes(AnnotatedElement element, public static AnnotationAttributes findAnnotationAttributes(AnnotatedElement element,
Class<? extends Annotation> annotationType) { Class<? extends Annotation> annotationType) {
Assert.notNull(annotationType, "annotationType must not be null"); 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 * not found
*/ */
public static AnnotationAttributes findAnnotationAttributes(AnnotatedElement element, String annotationType) { 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<AnnotationAttributes> { private static class MergeAnnotationAttributesProcessor implements Processor<AnnotationAttributes> {
private final boolean classValuesAsString; private final boolean classValuesAsString;

Loading…
Cancel
Save