--- 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 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 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();
}