Skip to content

Commit d5bfd7f

Browse files
committed
Polishing
1 parent 0656922 commit d5bfd7f

File tree

3 files changed

+31
-31
lines changed

3 files changed

+31
-31
lines changed

spring-core/src/main/java/org/springframework/core/annotation/AliasFor.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@
166166
* }</pre>
167167
*
168168
* <h3>Spring Annotations Supporting Attribute Aliases</h3>
169-
* <p>As of Spring Framework 4.2, several annotations within core Spring
170-
* have been updated to use {@code @AliasFor} to configure their internal
171-
* attribute aliases. Consult the Javadoc for individual annotations as well
172-
* as the reference manual for details.
169+
* <p>Many annotations within the Spring Framework and across the Spring
170+
* ecosystem rely on {@code @AliasFor} to configure attribute aliases. Consult
171+
* the Javadoc for individual annotations as well as reference documentation for
172+
* details.
173173
*
174174
* @author Sam Brannen
175175
* @since 4.2

spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java

+26-26
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ public static boolean isAnnotated(AnnotatedElement element, String annotationNam
237237
* the annotation hierarchy <em>above</em> the supplied {@code element} and
238238
* merge that annotation's attributes with <em>matching</em> attributes from
239239
* annotations in lower levels of the annotation hierarchy.
240-
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both
241-
* within a single annotation and within the annotation hierarchy.
240+
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both within
241+
* a single annotation and within the annotation hierarchy.
242242
* <p>This method delegates to {@link #getMergedAnnotationAttributes(AnnotatedElement, String)}.
243243
* @param element the annotated element
244244
* @param annotationType the annotation type to find
@@ -262,8 +262,8 @@ public static boolean isAnnotated(AnnotatedElement element, String annotationNam
262262
* the annotation hierarchy <em>above</em> the supplied {@code element} and
263263
* merge that annotation's attributes with <em>matching</em> attributes from
264264
* annotations in lower levels of the annotation hierarchy.
265-
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both
266-
* within a single annotation and within the annotation hierarchy.
265+
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both within
266+
* a single annotation and within the annotation hierarchy.
267267
* <p>This method delegates to {@link #getMergedAnnotationAttributes(AnnotatedElement, String, boolean, boolean)},
268268
* supplying {@code false} for {@code classValuesAsString} and {@code nestedAnnotationsAsMap}.
269269
* @param element the annotated element
@@ -321,8 +321,8 @@ public static boolean isAnnotated(AnnotatedElement element, String annotationNam
321321
* merge that annotation's attributes with <em>matching</em> attributes from
322322
* annotations in lower levels of the annotation hierarchy, and synthesize
323323
* the result back into an annotation of the specified {@code annotationType}.
324-
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both
325-
* within a single annotation and within the annotation hierarchy.
324+
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both within
325+
* a single annotation and within the annotation hierarchy.
326326
* @param element the annotated element
327327
* @param annotationType the annotation type to find
328328
* @return the merged, synthesized {@code Annotation}, or {@code null} if not found
@@ -348,8 +348,8 @@ public static boolean isAnnotated(AnnotatedElement element, String annotationNam
348348
* <em>matching</em> attributes from annotations in lower levels of the annotation
349349
* hierarchy and synthesize the results back into an annotation of the specified
350350
* {@code annotationType}.
351-
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both within a
352-
* single annotation and within annotation hierarchies.
351+
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both within
352+
* a single annotation and within the annotation hierarchy.
353353
* <p>This method follows <em>get semantics</em> as described in the
354354
* {@linkplain AnnotatedElementUtils class-level javadoc}.
355355
* @param element the annotated element (never {@code null})
@@ -375,8 +375,8 @@ public static <A extends Annotation> Set<A> getAllMergedAnnotations(
375375
* <em>matching</em> attributes from annotations in lower levels of the
376376
* annotation hierarchy and synthesize the results back into an annotation
377377
* of the corresponding {@code annotationType}.
378-
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both within a
379-
* single annotation and within annotation hierarchies.
378+
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both within
379+
* a single annotation and within the annotation hierarchy.
380380
* <p>This method follows <em>get semantics</em> as described in the
381381
* {@linkplain AnnotatedElementUtils class-level javadoc}.
382382
* @param element the annotated element (never {@code null})
@@ -402,9 +402,9 @@ public static Set<Annotation> getAllMergedAnnotations(AnnotatedElement element,
402402
* hierarchy and synthesize the results back into an annotation of the specified
403403
* {@code annotationType}.
404404
* <p>The container type that holds the repeatable annotations will be looked up
405-
* via {@link java.lang.annotation.Repeatable}.
406-
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both within a
407-
* single annotation and within annotation hierarchies.
405+
* via {@link java.lang.annotation.Repeatable @Repeatable}.
406+
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both within
407+
* a single annotation and within the annotation hierarchy.
408408
* <p>This method follows <em>get semantics</em> as described in the
409409
* {@linkplain AnnotatedElementUtils class-level javadoc}.
410410
* @param element the annotated element (never {@code null})
@@ -431,8 +431,8 @@ public static <A extends Annotation> Set<A> getMergedRepeatableAnnotations(
431431
* <em>matching</em> attributes from annotations in lower levels of the annotation
432432
* hierarchy and synthesize the results back into an annotation of the specified
433433
* {@code annotationType}.
434-
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both within a
435-
* single annotation and within annotation hierarchies.
434+
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both within
435+
* a single annotation and within the annotation hierarchy.
436436
* <p>This method follows <em>get semantics</em> as described in the
437437
* {@linkplain AnnotatedElementUtils class-level javadoc}.
438438
* <p><strong>WARNING</strong>: if the supplied {@code containerType} is not
@@ -621,8 +621,8 @@ public static boolean hasAnnotation(AnnotatedElement element, Class<? extends An
621621
* merge that annotation's attributes with <em>matching</em> attributes from
622622
* annotations in lower levels of the annotation hierarchy, and synthesize
623623
* the result back into an annotation of the specified {@code annotationType}.
624-
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both
625-
* within a single annotation and within the annotation hierarchy.
624+
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both within
625+
* a single annotation and within the annotation hierarchy.
626626
* <p>This method follows <em>find semantics</em> as described in the
627627
* {@linkplain AnnotatedElementUtils class-level javadoc}.
628628
* @param element the annotated element
@@ -652,8 +652,8 @@ public static boolean hasAnnotation(AnnotatedElement element, Class<? extends An
652652
* <em>matching</em> attributes from annotations in lower levels of the annotation
653653
* hierarchy and synthesize the results back into an annotation of the specified
654654
* {@code annotationType}.
655-
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both within a
656-
* single annotation and within annotation hierarchies.
655+
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both within
656+
* a single annotation and within the annotation hierarchy.
657657
* <p>This method follows <em>find semantics</em> as described in the
658658
* {@linkplain AnnotatedElementUtils class-level javadoc}.
659659
* @param element the annotated element (never {@code null})
@@ -677,8 +677,8 @@ public static <A extends Annotation> Set<A> findAllMergedAnnotations(AnnotatedEl
677677
* <em>matching</em> attributes from annotations in lower levels of the
678678
* annotation hierarchy and synthesize the results back into an annotation
679679
* of the corresponding {@code annotationType}.
680-
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both within a
681-
* single annotation and within annotation hierarchies.
680+
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both within
681+
* a single annotation and within the annotation hierarchy.
682682
* <p>This method follows <em>find semantics</em> as described in the
683683
* {@linkplain AnnotatedElementUtils class-level javadoc}.
684684
* @param element the annotated element (never {@code null})
@@ -703,9 +703,9 @@ public static Set<Annotation> findAllMergedAnnotations(AnnotatedElement element,
703703
* hierarchy and synthesize the results back into an annotation of the specified
704704
* {@code annotationType}.
705705
* <p>The container type that holds the repeatable annotations will be looked up
706-
* via {@link java.lang.annotation.Repeatable}.
707-
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both within a
708-
* single annotation and within annotation hierarchies.
706+
* via {@link java.lang.annotation.Repeatable @Repeatable}.
707+
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both within
708+
* a single annotation and within the annotation hierarchy.
709709
* <p>This method follows <em>find semantics</em> as described in the
710710
* {@linkplain AnnotatedElementUtils class-level javadoc}.
711711
* @param element the annotated element (never {@code null})
@@ -732,8 +732,8 @@ public static <A extends Annotation> Set<A> findMergedRepeatableAnnotations(Anno
732732
* <em>matching</em> attributes from annotations in lower levels of the annotation
733733
* hierarchy and synthesize the results back into an annotation of the specified
734734
* {@code annotationType}.
735-
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both within a
736-
* single annotation and within annotation hierarchies.
735+
* <p>{@link AliasFor @AliasFor} semantics are fully supported, both within
736+
* a single annotation and within the annotation hierarchy.
737737
* <p>This method follows <em>find semantics</em> as described in the
738738
* {@linkplain AnnotatedElementUtils class-level javadoc}.
739739
* <p><strong>WARNING</strong>: if the supplied {@code containerType} is not

spring-core/src/main/java/org/springframework/core/annotation/MergedAnnotations.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* "merged" from different source values, typically:
3737
*
3838
* <ul>
39-
* <li>Explicit and Implicit {@link AliasFor @AliasFor} declarations on one or
39+
* <li>Explicit and implicit {@link AliasFor @AliasFor} declarations on one or
4040
* more attributes within the annotation</li>
4141
* <li>Explicit {@code @AliasFor} declarations for a meta-annotation</li>
4242
* <li>Convention based attribute aliases for a meta-annotation</li>

0 commit comments

Comments
 (0)