--- old/src/java.base/share/classes/java/lang/Package.java 2019-06-07 22:41:44.458498274 -0700 +++ new/src/java.base/share/classes/java/lang/Package.java 2019-06-07 22:41:44.042498274 -0700 @@ -434,9 +434,12 @@ } /** + * {@inheritDoc} + *
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 +455,8 @@
}
/**
+ * {@inheritDoc}
+ * Any annotations returned by this method are declaration annotations.
* @throws NullPointerException {@inheritDoc}
* @since 1.8
*/
@@ -461,13 +466,18 @@
}
/**
+ * {@inheritDoc}
+ * Any annotations returned by this method are declaration annotations.
* @since 1.5
*/
+ @Override
public Annotation[] getAnnotations() {
return getPackageInfo().getAnnotations();
}
/**
+ * {@inheritDoc}
+ * Any annotation returned by this method is a declaration annotation.
* @throws NullPointerException {@inheritDoc}
* @since 1.8
*/
@@ -477,6 +487,8 @@
}
/**
+ * {@inheritDoc}
+ * Any annotations returned by this method are declaration annotations.
* @throws NullPointerException {@inheritDoc}
* @since 1.8
*/
@@ -486,8 +498,11 @@
}
/**
+ * {@inheritDoc}
+ * Any annotations returned by this method are declaration annotations.
* @since 1.5
*/
+ @Override
public Annotation[] getDeclaredAnnotations() {
return getPackageInfo().getDeclaredAnnotations();
}