From 18b55ceaa44baabdfce8dcfa1cd6b3e3bdc9df1a Mon Sep 17 00:00:00 2001 From: Joe Darcy Date: Mon, 21 Oct 2024 15:14:12 +0000 Subject: [PATCH] 8342653: Fix minor doc issues in AnnotatedElement Reviewed-by: jpai, iris, liach --- .../share/classes/java/lang/reflect/AnnotatedElement.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/java.base/share/classes/java/lang/reflect/AnnotatedElement.java b/src/java.base/share/classes/java/lang/reflect/AnnotatedElement.java index cc1bcd7dfdd..5ddefa10928 100644 --- a/src/java.base/share/classes/java/lang/reflect/AnnotatedElement.java +++ b/src/java.base/share/classes/java/lang/reflect/AnnotatedElement.java @@ -257,7 +257,7 @@ import sun.reflect.annotation.AnnotationType; * {@link java.lang.annotation.AnnotationFormatError} is thrown. * *

Finally, attempting to read a member whose definition has evolved - * incompatibly will result in a {@link + * incompatibly will result in an {@link * java.lang.annotation.AnnotationTypeMismatchException} or an * {@link java.lang.annotation.IncompleteAnnotationException}. * @@ -286,7 +286,6 @@ public interface AnnotatedElement { * @return true if an annotation for the specified annotation * type is present on this element, else false * @throws NullPointerException if the given annotation class is null - * @since 1.5 */ default boolean isAnnotationPresent(Class annotationClass) { return getAnnotation(annotationClass) != null; @@ -302,7 +301,6 @@ public interface AnnotatedElement { * @return this element's annotation for the specified annotation type if * present on this element, else null * @throws NullPointerException if the given annotation class is null - * @since 1.5 */ T getAnnotation(Class annotationClass); @@ -316,7 +314,6 @@ public interface AnnotatedElement { * have no effect on the arrays returned to other callers. * * @return annotations present on this element - * @since 1.5 */ Annotation[] getAnnotations(); @@ -478,7 +475,6 @@ public interface AnnotatedElement { * have no effect on the arrays returned to other callers. * * @return annotations directly present on this element - * @since 1.5 */ Annotation[] getDeclaredAnnotations(); }