6161 * <h3>Terminology</h3>
6262 * The terms <em>directly present</em>, <em>indirectly present</em>, and
6363 * <em>present</em> have the same meanings as defined in the class-level
64- * javadoc for {@link AnnotatedElement} (in Java 8) .
64+ * javadoc for {@link AnnotatedElement}.
6565 *
6666 * <p>An annotation is <em>meta-present</em> on an element if the annotation
6767 * is declared as a meta-annotation on some other annotation which is
7474 * provide support for finding annotations used as meta-annotations. Consult the
7575 * javadoc for each method in this class for details. For fine-grained support for
7676 * meta-annotations with <em>attribute overrides</em> in <em>composed annotations</em>,
77- * consider using {@link AnnotatedElementUtils}'s more specific methods instead.
77+ * consider using the {@link MergedAnnotations} API directly or the more specific
78+ * methods in {@link AnnotatedElementUtils} instead.
7879 *
7980 * <h3>Attribute Aliases</h3>
8081 * <p>All public methods in this class that return annotations, arrays of
9899 * @since 2.0
99100 * @see AliasFor
100101 * @see AnnotationAttributes
102+ * @see MergedAnnotations
101103 * @see AnnotatedElementUtils
102104 * @see BridgeMethodResolver
103105 * @see java.lang.reflect.AnnotatedElement#getAnnotations()
@@ -303,11 +305,11 @@ private static <A extends Annotation> boolean isSingleLevelPresent(MergedAnnotat
303305 * {@code annotationType} from the supplied {@link AnnotatedElement}, where
304306 * such annotations are either <em>present</em>, <em>indirectly present</em>,
305307 * or <em>meta-present</em> on the element.
306- * <p>This method mimics the functionality of Java 8's
308+ * <p>This method mimics the functionality of
307309 * {@link java.lang.reflect.AnnotatedElement#getAnnotationsByType(Class)}
308310 * with support for automatic detection of a <em>container annotation</em>
309- * declared via @ {@link java.lang.annotation.Repeatable} (when running on
310- * Java 8 or higher) and with additional support for meta-annotations.
311+ * declared via {@link java.lang.annotation.Repeatable @Repeatable} and with
312+ * additional support for meta-annotations.
311313 * <p>Handles both single annotations and annotations nested within a
312314 * <em>container annotation</em>.
313315 * <p>Correctly handles <em>bridge methods</em> generated by the
@@ -338,7 +340,7 @@ public static <A extends Annotation> Set<A> getRepeatableAnnotations(AnnotatedEl
338340 * {@code annotationType} from the supplied {@link AnnotatedElement}, where
339341 * such annotations are either <em>present</em>, <em>indirectly present</em>,
340342 * or <em>meta-present</em> on the element.
341- * <p>This method mimics the functionality of Java 8's
343+ * <p>This method mimics the functionality
342344 * {@link java.lang.reflect.AnnotatedElement#getAnnotationsByType(Class)}
343345 * with additional support for meta-annotations.
344346 * <p>Handles both single annotations and annotations nested within a
@@ -349,10 +351,9 @@ public static <A extends Annotation> Set<A> getRepeatableAnnotations(AnnotatedEl
349351 * <em>present</em> on the supplied element.
350352 * @param annotatedElement the element to look for annotations on
351353 * @param annotationType the annotation type to look for
352- * @param containerAnnotationType the type of the container that holds
353- * the annotations; may be {@code null} if a container is not supported
354- * or if it should be looked up via @{@link java.lang.annotation.Repeatable}
355- * when running on Java 8 or higher
354+ * @param containerAnnotationType the type of the container that holds the
355+ * annotations; may be {@code null} if a container is not supported or if it
356+ * should be looked up via {@link java.lang.annotation.Repeatable @Repeatable}
356357 * @return the annotations found or an empty set (never {@code null})
357358 * @since 4.2
358359 * @see #getRepeatableAnnotations(AnnotatedElement, Class)
@@ -384,11 +385,11 @@ public static <A extends Annotation> Set<A> getRepeatableAnnotations(AnnotatedEl
384385 * of {@code annotationType} from the supplied {@link AnnotatedElement},
385386 * where such annotations are either <em>directly present</em>,
386387 * <em>indirectly present</em>, or <em>meta-present</em> on the element.
387- * <p>This method mimics the functionality of Java 8's
388+ * <p>This method mimics the functionality of
388389 * {@link java.lang.reflect.AnnotatedElement#getDeclaredAnnotationsByType(Class)}
389390 * with support for automatic detection of a <em>container annotation</em>
390- * declared via @ {@link java.lang.annotation.Repeatable} (when running on
391- * Java 8 or higher) and with additional support for meta-annotations.
391+ * declared via {@link java.lang.annotation.Repeatable @Repeatable} and with
392+ * additional support for meta-annotations.
392393 * <p>Handles both single annotations and annotations nested within a
393394 * <em>container annotation</em>.
394395 * <p>Correctly handles <em>bridge methods</em> generated by the
@@ -420,7 +421,7 @@ public static <A extends Annotation> Set<A> getDeclaredRepeatableAnnotations(Ann
420421 * of {@code annotationType} from the supplied {@link AnnotatedElement},
421422 * where such annotations are either <em>directly present</em>,
422423 * <em>indirectly present</em>, or <em>meta-present</em> on the element.
423- * <p>This method mimics the functionality of Java 8's
424+ * <p>This method mimics the functionality of
424425 * {@link java.lang.reflect.AnnotatedElement#getDeclaredAnnotationsByType(Class)}
425426 * with additional support for meta-annotations.
426427 * <p>Handles both single annotations and annotations nested within a
@@ -431,10 +432,9 @@ public static <A extends Annotation> Set<A> getDeclaredRepeatableAnnotations(Ann
431432 * <em>present</em> on the supplied element.
432433 * @param annotatedElement the element to look for annotations on
433434 * @param annotationType the annotation type to look for
434- * @param containerAnnotationType the type of the container that holds
435- * the annotations; may be {@code null} if a container is not supported
436- * or if it should be looked up via @{@link java.lang.annotation.Repeatable}
437- * when running on Java 8 or higher
435+ * @param containerAnnotationType the type of the container that holds the
436+ * annotations; may be {@code null} if a container is not supported or if it
437+ * should be looked up via {@link java.lang.annotation.Repeatable @Repeatable}
438438 * @return the annotations found or an empty set (never {@code null})
439439 * @since 4.2
440440 * @see #getRepeatableAnnotations(AnnotatedElement, Class)
0 commit comments