--- old/src/java.base/share/classes/java/lang/reflect/Executable.java 2020-04-06 16:20:07.955005001 -0700 +++ new/src/java.base/share/classes/java/lang/reflect/Executable.java 2020-04-06 16:20:07.703005001 -0700 @@ -544,6 +544,9 @@ * ("synthetic") to the parameter list for a method. See {@link * java.lang.reflect.Parameter} for more information. * + *

Note that any annotations returned by this method are + * declaration annotations. + * * @see java.lang.reflect.Parameter * @see java.lang.reflect.Parameter#getAnnotations * @return an array of arrays that represent the annotations on @@ -577,6 +580,7 @@ * {@inheritDoc} * @throws NullPointerException {@inheritDoc} */ + @Override public T getAnnotation(Class annotationClass) { Objects.requireNonNull(annotationClass); return annotationClass.cast(declaredAnnotations().get(annotationClass)); @@ -584,6 +588,7 @@ /** * {@inheritDoc} + * * @throws NullPointerException {@inheritDoc} */ @Override @@ -596,6 +601,7 @@ /** * {@inheritDoc} */ + @Override public Annotation[] getDeclaredAnnotations() { return AnnotationParser.toArray(declaredAnnotations()); }