61
61
* <h3>Terminology</h3>
62
62
* The terms <em>directly present</em>, <em>indirectly present</em>, and
63
63
* <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}.
65
65
*
66
66
* <p>An annotation is <em>meta-present</em> on an element if the annotation
67
67
* is declared as a meta-annotation on some other annotation which is
74
74
* provide support for finding annotations used as meta-annotations. Consult the
75
75
* javadoc for each method in this class for details. For fine-grained support for
76
76
* 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.
78
79
*
79
80
* <h3>Attribute Aliases</h3>
80
81
* <p>All public methods in this class that return annotations, arrays of
98
99
* @since 2.0
99
100
* @see AliasFor
100
101
* @see AnnotationAttributes
102
+ * @see MergedAnnotations
101
103
* @see AnnotatedElementUtils
102
104
* @see BridgeMethodResolver
103
105
* @see java.lang.reflect.AnnotatedElement#getAnnotations()
@@ -303,11 +305,11 @@ private static <A extends Annotation> boolean isSingleLevelPresent(MergedAnnotat
303
305
* {@code annotationType} from the supplied {@link AnnotatedElement}, where
304
306
* such annotations are either <em>present</em>, <em>indirectly present</em>,
305
307
* 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
307
309
* {@link java.lang.reflect.AnnotatedElement#getAnnotationsByType(Class)}
308
310
* 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.
311
313
* <p>Handles both single annotations and annotations nested within a
312
314
* <em>container annotation</em>.
313
315
* <p>Correctly handles <em>bridge methods</em> generated by the
@@ -338,7 +340,7 @@ public static <A extends Annotation> Set<A> getRepeatableAnnotations(AnnotatedEl
338
340
* {@code annotationType} from the supplied {@link AnnotatedElement}, where
339
341
* such annotations are either <em>present</em>, <em>indirectly present</em>,
340
342
* 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
342
344
* {@link java.lang.reflect.AnnotatedElement#getAnnotationsByType(Class)}
343
345
* with additional support for meta-annotations.
344
346
* <p>Handles both single annotations and annotations nested within a
@@ -349,10 +351,9 @@ public static <A extends Annotation> Set<A> getRepeatableAnnotations(AnnotatedEl
349
351
* <em>present</em> on the supplied element.
350
352
* @param annotatedElement the element to look for annotations on
351
353
* @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}
356
357
* @return the annotations found or an empty set (never {@code null})
357
358
* @since 4.2
358
359
* @see #getRepeatableAnnotations(AnnotatedElement, Class)
@@ -384,11 +385,11 @@ public static <A extends Annotation> Set<A> getRepeatableAnnotations(AnnotatedEl
384
385
* of {@code annotationType} from the supplied {@link AnnotatedElement},
385
386
* where such annotations are either <em>directly present</em>,
386
387
* <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
388
389
* {@link java.lang.reflect.AnnotatedElement#getDeclaredAnnotationsByType(Class)}
389
390
* 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.
392
393
* <p>Handles both single annotations and annotations nested within a
393
394
* <em>container annotation</em>.
394
395
* <p>Correctly handles <em>bridge methods</em> generated by the
@@ -420,7 +421,7 @@ public static <A extends Annotation> Set<A> getDeclaredRepeatableAnnotations(Ann
420
421
* of {@code annotationType} from the supplied {@link AnnotatedElement},
421
422
* where such annotations are either <em>directly present</em>,
422
423
* <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
424
425
* {@link java.lang.reflect.AnnotatedElement#getDeclaredAnnotationsByType(Class)}
425
426
* with additional support for meta-annotations.
426
427
* <p>Handles both single annotations and annotations nested within a
@@ -431,10 +432,9 @@ public static <A extends Annotation> Set<A> getDeclaredRepeatableAnnotations(Ann
431
432
* <em>present</em> on the supplied element.
432
433
* @param annotatedElement the element to look for annotations on
433
434
* @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}
438
438
* @return the annotations found or an empty set (never {@code null})
439
439
* @since 4.2
440
440
* @see #getRepeatableAnnotations(AnnotatedElement, Class)
0 commit comments