From 0543f71b82c740c93edb83d6f8f15f63b97715ca Mon Sep 17 00:00:00 2001 From: Neil Fuller Date: Wed, 28 Sep 2016 15:00:14 +0100 Subject: Fix AnnotatedElement.getDeclaredAnnotation() generic signature To match upstream OpenJDK 8. Bug: 31108290 Test: make droid Change-Id: Icdf54eb65b8d89ee474ec51eab552ceb3fc6d8ec --- api/current.txt | 2 +- api/system-current.txt | 2 +- api/test-current.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/current.txt b/api/current.txt index 125e11311b20..8ff4e206bc37 100644 --- a/api/current.txt +++ b/api/current.txt @@ -51844,7 +51844,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 6dc2bcf5d9e1..b317acb82ce3 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -55201,7 +55201,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 941790e11c01..a60b54ee00b6 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -51924,7 +51924,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); -- cgit v1.2.3-59-g8ed1b