|
36 | 36 | * repeatable annotations on {@link AnnotatedElement AnnotatedElements}.
|
37 | 37 | *
|
38 | 38 | * <p>{@code AnnotatedElementUtils} defines the public API for Spring's
|
39 |
| - * meta-annotation programming model with support for <em>annotation attribute |
40 |
| - * overrides</em> and {@link AliasFor @AliasFor}. Note, however, that |
41 |
| - * {@code AnnotatedElementUtils} is effectively a facade for the |
42 |
| - * {@link MergedAnnotations} API. For fine-grained support consider using the |
| 39 | + * meta-annotation programming model with support for attribute aliases and |
| 40 | + * <em>annotation attribute overrides</em> configured via {@link AliasFor @AliasFor}. |
| 41 | + * Note, however, that {@code AnnotatedElementUtils} is effectively a facade for |
| 42 | + * the {@link MergedAnnotations} API. For fine-grained support consider using the |
43 | 43 | * {@code MergedAnnotations} API directly. If you do not need support for
|
44 |
| - * annotation attribute overrides, {@code @AliasFor}, or merged annotations, |
45 |
| - * consider using {@link AnnotationUtils} instead. |
| 44 | + * {@code @AliasFor} or merged annotations, consider using {@link AnnotationUtils} |
| 45 | + * instead. |
46 | 46 | *
|
47 | 47 | * <p>Note that the features of this class are not provided by the JDK's
|
48 | 48 | * introspection facilities themselves.
|
@@ -286,9 +286,8 @@ public static boolean isAnnotated(AnnotatedElement element, String annotationNam
|
286 | 286 | * the annotation hierarchy <em>above</em> the supplied {@code element} and
|
287 | 287 | * merge that annotation's attributes with <em>matching</em> attributes from
|
288 | 288 | * annotations in lower levels of the annotation hierarchy.
|
289 |
| - * <p>Attributes from lower levels in the annotation hierarchy override attributes |
290 |
| - * of the same name from higher levels, and {@link AliasFor @AliasFor} semantics are |
291 |
| - * fully supported, both within a single annotation and within the annotation hierarchy. |
| 289 | + * <p>{@link AliasFor @AliasFor} semantics are fully supported, both within |
| 290 | + * a single annotation and within the annotation hierarchy. |
292 | 291 | * <p>In contrast to {@link #getAllAnnotationAttributes}, the search algorithm used by
|
293 | 292 | * this method will stop searching the annotation hierarchy once the first annotation
|
294 | 293 | * of the specified {@code annotationName} has been found. As a consequence,
|
@@ -550,10 +549,8 @@ public static boolean hasAnnotation(AnnotatedElement element, Class<? extends An
|
550 | 549 | * the annotation hierarchy <em>above</em> the supplied {@code element} and
|
551 | 550 | * merge that annotation's attributes with <em>matching</em> attributes from
|
552 | 551 | * annotations in lower levels of the annotation hierarchy.
|
553 |
| - * <p>Attributes from lower levels in the annotation hierarchy override |
554 |
| - * attributes of the same name from higher levels, and |
555 |
| - * {@link AliasFor @AliasFor} semantics are fully supported, both |
556 |
| - * within a single annotation and within the annotation hierarchy. |
| 552 | + * <p>{@link AliasFor @AliasFor} semantics are fully supported, both within |
| 553 | + * a single annotation and within the annotation hierarchy. |
557 | 554 | * <p>In contrast to {@link #getAllAnnotationAttributes}, the search algorithm
|
558 | 555 | * used by this method will stop searching the annotation hierarchy once the
|
559 | 556 | * first annotation of the specified {@code annotationType} has been found.
|
@@ -585,10 +582,8 @@ public static boolean hasAnnotation(AnnotatedElement element, Class<? extends An
|
585 | 582 | * the annotation hierarchy <em>above</em> the supplied {@code element} and
|
586 | 583 | * merge that annotation's attributes with <em>matching</em> attributes from
|
587 | 584 | * annotations in lower levels of the annotation hierarchy.
|
588 |
| - * <p>Attributes from lower levels in the annotation hierarchy override |
589 |
| - * attributes of the same name from higher levels, and |
590 |
| - * {@link AliasFor @AliasFor} semantics are fully supported, both |
591 |
| - * within a single annotation and within the annotation hierarchy. |
| 585 | + * <p>{@link AliasFor @AliasFor} semantics are fully supported, both within |
| 586 | + * a single annotation and within the annotation hierarchy. |
592 | 587 | * <p>In contrast to {@link #getAllAnnotationAttributes}, the search
|
593 | 588 | * algorithm used by this method will stop searching the annotation
|
594 | 589 | * hierarchy once the first annotation of the specified
|
|
0 commit comments