--- old/src/java.base/share/classes/java/lang/reflect/AccessibleObject.java 2019-06-07 22:41:45.098498274 -0700 +++ new/src/java.base/share/classes/java/lang/reflect/AccessibleObject.java 2019-06-07 22:41:44.742498274 -0700 @@ -504,9 +504,12 @@ new ReflectionFactory.GetReflectionFactoryAction()); /** + * {@inheritDoc} + *

Any annotation returned by this method is a declaration annotation. * @throws NullPointerException {@inheritDoc} * @since 1.5 */ + @Override public T getAnnotation(Class annotationClass) { throw new AssertionError("All subclasses should override this method"); } @@ -522,6 +525,8 @@ } /** + * {@inheritDoc} + *

Any annotations returned by this method are declaration annotations. * @throws NullPointerException {@inheritDoc} * @since 1.8 */ @@ -531,13 +536,18 @@ } /** + * {@inheritDoc} + *

Any annotations returned by this method are declaration annotations. * @since 1.5 */ + @Override public Annotation[] getAnnotations() { return getDeclaredAnnotations(); } /** + * {@inheritDoc} + *

Any annotation returned by this method is a declaration annotation. * @throws NullPointerException {@inheritDoc} * @since 1.8 */ @@ -550,6 +560,8 @@ } /** + * {@inheritDoc} + *

Any annotations returned by this method are declaration annotations. * @throws NullPointerException {@inheritDoc} * @since 1.8 */ @@ -562,8 +574,11 @@ } /** + * {@inheritDoc} + *

Any annotations returned by this method are declaration annotations. * @since 1.5 */ + @Override public Annotation[] getDeclaredAnnotations() { throw new AssertionError("All subclasses should override this method"); }