--- old/src/java.base/share/classes/java/lang/reflect/AccessibleObject.java 2020-04-06 16:20:05.711005001 -0700 +++ new/src/java.base/share/classes/java/lang/reflect/AccessibleObject.java 2020-04-06 16:20:05.455005001 -0700 @@ -509,9 +509,14 @@ new ReflectionFactory.GetReflectionFactoryAction()); /** + * {@inheritDoc} + *
Note that any annotation returned by this method is a
+ * declaration annotation.
+ *
* @throws NullPointerException {@inheritDoc}
* @since 1.5
*/
+ @Override
public Note that any annotations returned by this method are
+ * declaration annotations.
+ *
* @throws NullPointerException {@inheritDoc}
* @since 1.8
*/
@@ -536,13 +545,22 @@
}
/**
+ * {@inheritDoc}
+ * Note that any annotations returned by this method are
+ * declaration annotations.
+ *
* @since 1.5
*/
+ @Override
public Annotation[] getAnnotations() {
return getDeclaredAnnotations();
}
/**
+ * {@inheritDoc}
+ * Note that any annotation returned by this method is a
+ * declaration annotation.
+ *
* @throws NullPointerException {@inheritDoc}
* @since 1.8
*/
@@ -555,6 +573,10 @@
}
/**
+ * {@inheritDoc}
+ * Note that any annotations returned by this method are
+ * declaration annotations.
+ *
* @throws NullPointerException {@inheritDoc}
* @since 1.8
*/
@@ -567,8 +589,13 @@
}
/**
+ * {@inheritDoc}
+ * Note that 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");
}