--- old/src/java.base/share/classes/java/lang/Package.java 2020-04-06 16:20:05.183005001 -0700 +++ new/src/java.base/share/classes/java/lang/Package.java 2020-04-06 16:20:04.927005001 -0700 @@ -434,9 +434,14 @@ } /** + * {@inheritDoc} + *

Note that any annotation returned by this method is a + * declaration annotation. + * * @throws NullPointerException {@inheritDoc} * @since 1.5 */ + @Override public A getAnnotation(Class annotationClass) { return getPackageInfo().getAnnotation(annotationClass); } @@ -452,6 +457,10 @@ } /** + * {@inheritDoc} + *

Note that any annotations returned by this method are + * declaration annotations. + * * @throws NullPointerException {@inheritDoc} * @since 1.8 */ @@ -461,13 +470,21 @@ } /** + * {@inheritDoc} + *

Note that any annotations returned by this method are + * declaration annotations. * @since 1.5 */ + @Override public Annotation[] getAnnotations() { return getPackageInfo().getAnnotations(); } /** + * {@inheritDoc} + *

Note that any annotation returned by this method is a + * declaration annotation. + * * @throws NullPointerException {@inheritDoc} * @since 1.8 */ @@ -486,8 +503,12 @@ } /** + * {@inheritDoc} + *

Note that any annotations returned by this method are + * declaration annotations. * @since 1.5 */ + @Override public Annotation[] getDeclaredAnnotations() { return getPackageInfo().getDeclaredAnnotations(); }