--- old/src/java.base/share/classes/java/lang/reflect/AnnotatedType.java 2020-03-02 23:35:16.744037999 -0800 +++ new/src/java.base/share/classes/java/lang/reflect/AnnotatedType.java 2020-03-02 23:35:16.508155999 -0800 @@ -25,6 +25,8 @@ package java.lang.reflect; +import java.lang.annotation.Annotation; + /** * {@code AnnotatedType} represents the potentially annotated use of a type in * the program currently running in this VM. The use may be of any type in the @@ -72,4 +74,16 @@ * @return the type this annotated type represents */ public Type getType(); + + /** + * {@inheritDoc} + *

Note that any annotation returned by this method is a type + * annotation. + * + * @throws NullPointerException {@inheritDoc} + * @since 1.8 + */ + @Override + T getAnnotation(Class annotationClass); + }