diff --git a/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java b/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java index 68f9e96e5a2..98e912e33e0 100644 --- a/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java +++ b/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java @@ -309,11 +309,11 @@ public abstract class AnnotationUtils { * {@code annotationType} from the supplied {@link AnnotatedElement}, where * such annotations are either present, indirectly present, * or meta-present on the element. - *
This method mimics the functionality of Java 8's + *
This method mimics the functionality of * {@link java.lang.reflect.AnnotatedElement#getAnnotationsByType(Class)} * with support for automatic detection of a container annotation - * declared via @{@link java.lang.annotation.Repeatable} (when running on - * Java 8 or higher) and with additional support for meta-annotations. + * declared via {@link java.lang.annotation.Repeatable @Repeatable} and with + * additional support for meta-annotations. *
Handles both single annotations and annotations nested within a * container annotation. *
Correctly handles bridge methods generated by the @@ -344,7 +344,7 @@ public abstract class AnnotationUtils { * {@code annotationType} from the supplied {@link AnnotatedElement}, where * such annotations are either present, indirectly present, * or meta-present on the element. - *
This method mimics the functionality of Java 8's + *
This method mimics the functionality * {@link java.lang.reflect.AnnotatedElement#getAnnotationsByType(Class)} * with additional support for meta-annotations. *
Handles both single annotations and annotations nested within a @@ -355,10 +355,9 @@ public abstract class AnnotationUtils { * present on the supplied element. * @param annotatedElement the element to look for annotations on * @param annotationType the annotation type to look for - * @param containerAnnotationType the type of the container that holds - * the annotations; may be {@code null} if a container is not supported - * or if it should be looked up via @{@link java.lang.annotation.Repeatable} - * when running on Java 8 or higher + * @param containerAnnotationType the type of the container that holds the + * annotations; may be {@code null} if a container is not supported or if it + * should be looked up via {@link java.lang.annotation.Repeatable @Repeatable} * @return the annotations found or an empty set (never {@code null}) * @since 4.2 * @see #getRepeatableAnnotations(AnnotatedElement, Class) @@ -390,11 +389,11 @@ public abstract class AnnotationUtils { * of {@code annotationType} from the supplied {@link AnnotatedElement}, * where such annotations are either directly present, * indirectly present, or meta-present on the element. - *
This method mimics the functionality of Java 8's + *
This method mimics the functionality of * {@link java.lang.reflect.AnnotatedElement#getDeclaredAnnotationsByType(Class)} * with support for automatic detection of a container annotation - * declared via @{@link java.lang.annotation.Repeatable} (when running on - * Java 8 or higher) and with additional support for meta-annotations. + * declared via {@link java.lang.annotation.Repeatable @Repeatable} and with + * additional support for meta-annotations. *
Handles both single annotations and annotations nested within a * container annotation. *
Correctly handles bridge methods generated by the @@ -426,7 +425,7 @@ public abstract class AnnotationUtils { * of {@code annotationType} from the supplied {@link AnnotatedElement}, * where such annotations are either directly present, * indirectly present, or meta-present on the element. - *
This method mimics the functionality of Java 8's + *
This method mimics the functionality of * {@link java.lang.reflect.AnnotatedElement#getDeclaredAnnotationsByType(Class)} * with additional support for meta-annotations. *
Handles both single annotations and annotations nested within a @@ -437,10 +436,9 @@ public abstract class AnnotationUtils { * present on the supplied element. * @param annotatedElement the element to look for annotations on * @param annotationType the annotation type to look for - * @param containerAnnotationType the type of the container that holds - * the annotations; may be {@code null} if a container is not supported - * or if it should be looked up via @{@link java.lang.annotation.Repeatable} - * when running on Java 8 or higher + * @param containerAnnotationType the type of the container that holds the + * annotations; may be {@code null} if a container is not supported or if it + * should be looked up via {@link java.lang.annotation.Repeatable @Repeatable} * @return the annotations found or an empty set (never {@code null}) * @since 4.2 * @see #getRepeatableAnnotations(AnnotatedElement, Class)