diff --git a/api/current.txt b/api/current.txt index b833aa409fc70..35ff9a1ca53c4 100644 --- a/api/current.txt +++ b/api/current.txt @@ -52035,7 +52035,7 @@ package java.lang.reflect { method public abstract T getAnnotation(java.lang.Class); method public abstract java.lang.annotation.Annotation[] getAnnotations(); method public default T[] getAnnotationsByType(java.lang.Class); - method public default java.lang.annotation.Annotation getDeclaredAnnotation(java.lang.Class); + method public default T getDeclaredAnnotation(java.lang.Class); method public abstract java.lang.annotation.Annotation[] getDeclaredAnnotations(); method public default T[] getDeclaredAnnotationsByType(java.lang.Class); method public default boolean isAnnotationPresent(java.lang.Class); diff --git a/api/system-current.txt b/api/system-current.txt index acf4d7f4659cb..e8b5dbfa828c2 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -55569,7 +55569,7 @@ package java.lang.reflect { method public abstract T getAnnotation(java.lang.Class); method public abstract java.lang.annotation.Annotation[] getAnnotations(); method public default T[] getAnnotationsByType(java.lang.Class); - method public default java.lang.annotation.Annotation getDeclaredAnnotation(java.lang.Class); + method public default T getDeclaredAnnotation(java.lang.Class); method public abstract java.lang.annotation.Annotation[] getDeclaredAnnotations(); method public default T[] getDeclaredAnnotationsByType(java.lang.Class); method public default boolean isAnnotationPresent(java.lang.Class); diff --git a/api/test-current.txt b/api/test-current.txt index af42e41167ab3..311fcaa21c6e0 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -52126,7 +52126,7 @@ package java.lang.reflect { method public abstract T getAnnotation(java.lang.Class); method public abstract java.lang.annotation.Annotation[] getAnnotations(); method public default T[] getAnnotationsByType(java.lang.Class); - method public default java.lang.annotation.Annotation getDeclaredAnnotation(java.lang.Class); + method public default T getDeclaredAnnotation(java.lang.Class); method public abstract java.lang.annotation.Annotation[] getDeclaredAnnotations(); method public default T[] getDeclaredAnnotationsByType(java.lang.Class); method public default boolean isAnnotationPresent(java.lang.Class);