--- old/src/java.base/share/classes/java/lang/reflect/Method.java 2020-04-06 16:20:09.171005001 -0700 +++ new/src/java.base/share/classes/java/lang/reflect/Method.java 2020-04-06 16:20:08.919005001 -0700 @@ -686,9 +686,10 @@ /** * {@inheritDoc} - * @throws NullPointerException {@inheritDoc} + * @throws NullPointerException {@inheritDoc} * @since 1.5 */ + @Override public T getAnnotation(Class annotationClass) { return super.getAnnotation(annotationClass); } @@ -697,6 +698,7 @@ * {@inheritDoc} * @since 1.5 */ + @Override public Annotation[] getDeclaredAnnotations() { return super.getDeclaredAnnotations(); }