--- old/src/java.base/share/classes/java/lang/reflect/Parameter.java 2019-06-07 22:41:48.438498274 -0700 +++ new/src/java.base/share/classes/java/lang/reflect/Parameter.java 2019-06-07 22:41:48.066498274 -0700 @@ -280,8 +280,10 @@ /** * {@inheritDoc} + *

Any annotation returned by this method is a declaration annotation. * @throws NullPointerException {@inheritDoc} */ + @Override public T getAnnotation(Class annotationClass) { Objects.requireNonNull(annotationClass); return annotationClass.cast(declaredAnnotations().get(annotationClass)); @@ -289,6 +291,7 @@ /** * {@inheritDoc} + *

Any annotations returned by this method are declaration annotations. * @throws NullPointerException {@inheritDoc} */ @Override @@ -300,14 +303,19 @@ /** * {@inheritDoc} + *

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

Any annotation returned by this method is a declaration annotation. * @throws NullPointerException {@inheritDoc} */ + @Override public T getDeclaredAnnotation(Class annotationClass) { // Only annotations on classes are inherited, for all other // objects getDeclaredAnnotation is the same as @@ -316,6 +324,8 @@ } /** + * {@inheritDoc} + *

Any annotations returned by this method are declaration annotations. * @throws NullPointerException {@inheritDoc} */ @Override @@ -328,7 +338,9 @@ /** * {@inheritDoc} + *

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