60
60
* individual method for details on which search algorithm is used.
61
61
*
62
62
* <p><strong>Get semantics</strong> are limited to searching for annotations
63
- * that are either <em>present</em> on an {@code AnnotatedElement} (i.e.,
64
- * declared locally or {@linkplain java.lang.annotation.Inherited inherited})
65
- * or declared within the annotation hierarchy <em>above</em> the
66
- * {@code AnnotatedElement}.
63
+ * that are either <em>present</em> on an {@code AnnotatedElement} (i.e. declared
64
+ * locally or {@linkplain java.lang.annotation.Inherited inherited}) or declared
65
+ * within the annotation hierarchy <em>above</em> the {@code AnnotatedElement}.
67
66
*
68
67
* <p><strong>Find semantics</strong> are much more exhaustive, providing
69
68
* <em>get semantics</em> plus support for the following:
77
76
* </ul>
78
77
*
79
78
* <h3>Support for {@code @Inherited}</h3>
80
- * <p>Methods following <em>get semantics</em> will honor the contract of
81
- * Java's {@link java.lang.annotation.Inherited @Inherited} annotation except
82
- * that locally declared annotations (including custom composed annotations)
83
- * will be favored over inherited annotations. In contrast, methods following
84
- * <em>find semantics</em> will completely ignore the presence of
85
- * {@code @Inherited} since the <em>find</em> search algorithm manually
86
- * traverses type and method hierarchies and thereby implicitly supports
87
- * annotation inheritance without the need for {@code @Inherited}.
79
+ * <p>Methods following <em>get semantics</em> will honor the contract of Java's
80
+ * {@link java.lang.annotation.Inherited @Inherited} annotation except that locally
81
+ * declared annotations (including custom composed annotations) will be favored over
82
+ * inherited annotations. In contrast, methods following <em>find semantics</em>
83
+ * will completely ignore the presence of {@code @Inherited} since the <em>find</em>
84
+ * search algorithm manually traverses type and method hierarchies and thereby
85
+ * implicitly supports annotation inheritance without a need for {@code @Inherited}.
88
86
*
89
87
* @author Phillip Webb
90
88
* @author Juergen Hoeller
@@ -794,7 +792,7 @@ public static <A extends Annotation> Set<A> findMergedRepeatableAnnotations(Anno
794
792
* @param annotationName the fully qualified class name of the annotation
795
793
* type to find (as an alternative to {@code annotationType})
796
794
* @param processor the processor to delegate to
797
- * @return the result of the processor, potentially {@code null}
795
+ * @return the result of the processor ( potentially {@code null})
798
796
*/
799
797
@ Nullable
800
798
private static <T > T searchWithGetSemantics (AnnotatedElement element ,
@@ -815,7 +813,7 @@ private static <T> T searchWithGetSemantics(AnnotatedElement element,
815
813
* @param containerType the type of the container that holds repeatable
816
814
* annotations, or {@code null} if the annotation is not repeatable
817
815
* @param processor the processor to delegate to
818
- * @return the result of the processor, potentially {@code null}
816
+ * @return the result of the processor ( potentially {@code null})
819
817
* @since 4.3
820
818
*/
821
819
@ Nullable
@@ -848,7 +846,7 @@ private static <T> T searchWithGetSemantics(AnnotatedElement element,
848
846
* @param processor the processor to delegate to
849
847
* @param visited the set of annotated elements that have already been visited
850
848
* @param metaDepth the meta-depth of the annotation
851
- * @return the result of the processor, potentially {@code null}
849
+ * @return the result of the processor ( potentially {@code null})
852
850
*/
853
851
@ Nullable
854
852
private static <T > T searchWithGetSemantics (AnnotatedElement element ,
@@ -909,7 +907,7 @@ private static <T> T searchWithGetSemantics(AnnotatedElement element,
909
907
* @param processor the processor to delegate to
910
908
* @param visited the set of annotated elements that have already been visited
911
909
* @param metaDepth the meta-depth of the annotation
912
- * @return the result of the processor, potentially {@code null}
910
+ * @return the result of the processor ( potentially {@code null})
913
911
* @since 4.2
914
912
*/
915
913
@ Nullable
@@ -979,7 +977,7 @@ else if (currentAnnotationType == containerType) {
979
977
* @param annotationName the fully qualified class name of the annotation
980
978
* type to find (as an alternative to {@code annotationType})
981
979
* @param processor the processor to delegate to
982
- * @return the result of the processor, potentially {@code null}
980
+ * @return the result of the processor ( potentially {@code null})
983
981
* @since 4.2
984
982
*/
985
983
@ Nullable
@@ -1001,7 +999,7 @@ private static <T> T searchWithFindSemantics(AnnotatedElement element,
1001
999
* @param containerType the type of the container that holds repeatable
1002
1000
* annotations, or {@code null} if the annotation is not repeatable
1003
1001
* @param processor the processor to delegate to
1004
- * @return the result of the processor, potentially {@code null}
1002
+ * @return the result of the processor ( potentially {@code null})
1005
1003
* @since 4.3
1006
1004
*/
1007
1005
@ Nullable
@@ -1039,7 +1037,7 @@ private static <T> T searchWithFindSemantics(AnnotatedElement element,
1039
1037
* @param processor the processor to delegate to
1040
1038
* @param visited the set of annotated elements that have already been visited
1041
1039
* @param metaDepth the meta-depth of the annotation
1042
- * @return the result of the processor, potentially {@code null}
1040
+ * @return the result of the processor ( potentially {@code null})
1043
1041
* @since 4.2
1044
1042
*/
1045
1043
@ Nullable
0 commit comments