11/*
2- * Copyright 2002-2017 the original author or authors.
2+ * Copyright 2002-2018 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
5959 * individual method for details on which search algorithm is used.
6060 *
6161 * <p><strong>Get semantics</strong> are limited to searching for annotations
62- * that are either <em>present</em> on an {@code AnnotatedElement} (i.e.,
63- * declared locally or {@linkplain java.lang.annotation.Inherited inherited})
64- * or declared within the annotation hierarchy <em>above</em> the
65- * {@code AnnotatedElement}.
62+ * that are either <em>present</em> on an {@code AnnotatedElement} (i.e. declared
63+ * locally or {@linkplain java.lang.annotation.Inherited inherited}) or declared
64+ * within the annotation hierarchy <em>above</em> the {@code AnnotatedElement}.
6665 *
6766 * <p><strong>Find semantics</strong> are much more exhaustive, providing
6867 * <em>get semantics</em> plus support for the following:
7675 * </ul>
7776 *
7877 * <h3>Support for {@code @Inherited}</h3>
79- * <p>Methods following <em>get semantics</em> will honor the contract of
80- * Java's {@link java.lang.annotation.Inherited @Inherited} annotation except
81- * that locally declared annotations (including custom composed annotations)
82- * will be favored over inherited annotations. In contrast, methods following
83- * <em>find semantics</em> will completely ignore the presence of
84- * {@code @Inherited} since the <em>find</em> search algorithm manually
85- * traverses type and method hierarchies and thereby implicitly supports
86- * annotation inheritance without the need for {@code @Inherited}.
78+ * <p>Methods following <em>get semantics</em> will honor the contract of Java's
79+ * {@link java.lang.annotation.Inherited @Inherited} annotation except that locally
80+ * declared annotations (including custom composed annotations) will be favored over
81+ * inherited annotations. In contrast, methods following <em>find semantics</em>
82+ * will completely ignore the presence of {@code @Inherited} since the <em>find</em>
83+ * search algorithm manually traverses type and method hierarchies and thereby
84+ * implicitly supports annotation inheritance without a need for {@code @Inherited}.
8785 *
8886 * @author Phillip Webb
8987 * @author Juergen Hoeller
@@ -873,7 +871,7 @@ public static <A extends Annotation> Set<A> findMergedRepeatableAnnotations(Anno
873871 * @param annotationName the fully qualified class name of the annotation
874872 * type to find (as an alternative to {@code annotationType})
875873 * @param processor the processor to delegate to
876- * @return the result of the processor, potentially {@code null}
874+ * @return the result of the processor ( potentially {@code null})
877875 */
878876 private static <T > T searchWithGetSemantics (AnnotatedElement element , Class <? extends Annotation > annotationType ,
879877 String annotationName , Processor <T > processor ) {
@@ -892,7 +890,7 @@ private static <T> T searchWithGetSemantics(AnnotatedElement element, Class<? ex
892890 * @param containerType the type of the container that holds repeatable
893891 * annotations, or {@code null} if the annotation is not repeatable
894892 * @param processor the processor to delegate to
895- * @return the result of the processor, potentially {@code null}
893+ * @return the result of the processor ( potentially {@code null})
896894 * @since 4.3
897895 */
898896 private static <T > T searchWithGetSemantics (AnnotatedElement element , Class <? extends Annotation > annotationType ,
@@ -923,7 +921,7 @@ private static <T> T searchWithGetSemantics(AnnotatedElement element, Class<? ex
923921 * @param processor the processor to delegate to
924922 * @param visited the set of annotated elements that have already been visited
925923 * @param metaDepth the meta-depth of the annotation
926- * @return the result of the processor, potentially {@code null}
924+ * @return the result of the processor ( potentially {@code null})
927925 */
928926 private static <T > T searchWithGetSemantics (AnnotatedElement element , Class <? extends Annotation > annotationType ,
929927 String annotationName , Class <? extends Annotation > containerType , Processor <T > processor ,
@@ -984,7 +982,7 @@ private static <T> T searchWithGetSemantics(AnnotatedElement element, Class<? ex
984982 * @param processor the processor to delegate to
985983 * @param visited the set of annotated elements that have already been visited
986984 * @param metaDepth the meta-depth of the annotation
987- * @return the result of the processor, potentially {@code null}
985+ * @return the result of the processor ( potentially {@code null})
988986 * @since 4.2
989987 */
990988 private static <T > T searchWithGetSemanticsInAnnotations (AnnotatedElement element ,
@@ -1053,7 +1051,7 @@ else if (currentAnnotationType == containerType) {
10531051 * @param annotationName the fully qualified class name of the annotation
10541052 * type to find (as an alternative to {@code annotationType})
10551053 * @param processor the processor to delegate to
1056- * @return the result of the processor, potentially {@code null}
1054+ * @return the result of the processor ( potentially {@code null})
10571055 * @since 4.2
10581056 */
10591057 private static <T > T searchWithFindSemantics (AnnotatedElement element , Class <? extends Annotation > annotationType ,
@@ -1073,7 +1071,7 @@ private static <T> T searchWithFindSemantics(AnnotatedElement element, Class<? e
10731071 * @param containerType the type of the container that holds repeatable
10741072 * annotations, or {@code null} if the annotation is not repeatable
10751073 * @param processor the processor to delegate to
1076- * @return the result of the processor, potentially {@code null}
1074+ * @return the result of the processor ( potentially {@code null})
10771075 * @since 4.3
10781076 */
10791077 private static <T > T searchWithFindSemantics (AnnotatedElement element , Class <? extends Annotation > annotationType ,
@@ -1109,7 +1107,7 @@ private static <T> T searchWithFindSemantics(AnnotatedElement element, Class<? e
11091107 * @param processor the processor to delegate to
11101108 * @param visited the set of annotated elements that have already been visited
11111109 * @param metaDepth the meta-depth of the annotation
1112- * @return the result of the processor, potentially {@code null}
1110+ * @return the result of the processor ( potentially {@code null})
11131111 * @since 4.2
11141112 */
11151113 private static <T > T searchWithFindSemantics (AnnotatedElement element , Class <? extends Annotation > annotationType ,
0 commit comments