diff --git a/api/current.txt b/api/current.txt index b79fbcecdeb68..fd5c371e805de 100644 --- a/api/current.txt +++ b/api/current.txt @@ -51846,7 +51846,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 f878ec4a44cd3..528342fd3ae47 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -55203,7 +55203,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 b43a151790177..871617f09ccb5 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -51926,7 +51926,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);