Skip to content

Commit 9e45178

Browse files
committed
Stop referring to "Java 8" in AnnotationUtils
1 parent d82e70e commit 9e45178

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

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

+14-16
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,11 @@ public static Annotation[] getAnnotations(Method method) {
309309
* {@code annotationType} from the supplied {@link AnnotatedElement}, where
310310
* such annotations are either <em>present</em>, <em>indirectly present</em>,
311311
* or <em>meta-present</em> on the element.
312-
* <p>This method mimics the functionality of Java 8's
312+
* <p>This method mimics the functionality of
313313
* {@link java.lang.reflect.AnnotatedElement#getAnnotationsByType(Class)}
314314
* with support for automatic detection of a <em>container annotation</em>
315-
* declared via @{@link java.lang.annotation.Repeatable} (when running on
316-
* Java 8 or higher) and with additional support for meta-annotations.
315+
* declared via {@link java.lang.annotation.Repeatable @Repeatable} and with
316+
* additional support for meta-annotations.
317317
* <p>Handles both single annotations and annotations nested within a
318318
* <em>container annotation</em>.
319319
* <p>Correctly handles <em>bridge methods</em> generated by the
@@ -344,7 +344,7 @@ public static <A extends Annotation> Set<A> getRepeatableAnnotations(AnnotatedEl
344344
* {@code annotationType} from the supplied {@link AnnotatedElement}, where
345345
* such annotations are either <em>present</em>, <em>indirectly present</em>,
346346
* or <em>meta-present</em> on the element.
347-
* <p>This method mimics the functionality of Java 8's
347+
* <p>This method mimics the functionality
348348
* {@link java.lang.reflect.AnnotatedElement#getAnnotationsByType(Class)}
349349
* with additional support for meta-annotations.
350350
* <p>Handles both single annotations and annotations nested within a
@@ -355,10 +355,9 @@ public static <A extends Annotation> Set<A> getRepeatableAnnotations(AnnotatedEl
355355
* <em>present</em> on the supplied element.
356356
* @param annotatedElement the element to look for annotations on
357357
* @param annotationType the annotation type to look for
358-
* @param containerAnnotationType the type of the container that holds
359-
* the annotations; may be {@code null} if a container is not supported
360-
* or if it should be looked up via @{@link java.lang.annotation.Repeatable}
361-
* when running on Java 8 or higher
358+
* @param containerAnnotationType the type of the container that holds the
359+
* annotations; may be {@code null} if a container is not supported or if it
360+
* should be looked up via {@link java.lang.annotation.Repeatable @Repeatable}
362361
* @return the annotations found or an empty set (never {@code null})
363362
* @since 4.2
364363
* @see #getRepeatableAnnotations(AnnotatedElement, Class)
@@ -390,11 +389,11 @@ public static <A extends Annotation> Set<A> getRepeatableAnnotations(AnnotatedEl
390389
* of {@code annotationType} from the supplied {@link AnnotatedElement},
391390
* where such annotations are either <em>directly present</em>,
392391
* <em>indirectly present</em>, or <em>meta-present</em> on the element.
393-
* <p>This method mimics the functionality of Java 8's
392+
* <p>This method mimics the functionality of
394393
* {@link java.lang.reflect.AnnotatedElement#getDeclaredAnnotationsByType(Class)}
395394
* with support for automatic detection of a <em>container annotation</em>
396-
* declared via @{@link java.lang.annotation.Repeatable} (when running on
397-
* Java 8 or higher) and with additional support for meta-annotations.
395+
* declared via {@link java.lang.annotation.Repeatable @Repeatable} and with
396+
* additional support for meta-annotations.
398397
* <p>Handles both single annotations and annotations nested within a
399398
* <em>container annotation</em>.
400399
* <p>Correctly handles <em>bridge methods</em> generated by the
@@ -426,7 +425,7 @@ public static <A extends Annotation> Set<A> getDeclaredRepeatableAnnotations(Ann
426425
* of {@code annotationType} from the supplied {@link AnnotatedElement},
427426
* where such annotations are either <em>directly present</em>,
428427
* <em>indirectly present</em>, or <em>meta-present</em> on the element.
429-
* <p>This method mimics the functionality of Java 8's
428+
* <p>This method mimics the functionality of
430429
* {@link java.lang.reflect.AnnotatedElement#getDeclaredAnnotationsByType(Class)}
431430
* with additional support for meta-annotations.
432431
* <p>Handles both single annotations and annotations nested within a
@@ -437,10 +436,9 @@ public static <A extends Annotation> Set<A> getDeclaredRepeatableAnnotations(Ann
437436
* <em>present</em> on the supplied element.
438437
* @param annotatedElement the element to look for annotations on
439438
* @param annotationType the annotation type to look for
440-
* @param containerAnnotationType the type of the container that holds
441-
* the annotations; may be {@code null} if a container is not supported
442-
* or if it should be looked up via @{@link java.lang.annotation.Repeatable}
443-
* when running on Java 8 or higher
439+
* @param containerAnnotationType the type of the container that holds the
440+
* annotations; may be {@code null} if a container is not supported or if it
441+
* should be looked up via {@link java.lang.annotation.Repeatable @Repeatable}
444442
* @return the annotations found or an empty set (never {@code null})
445443
* @since 4.2
446444
* @see #getRepeatableAnnotations(AnnotatedElement, Class)

0 commit comments

Comments
 (0)