< prev index next >
src/java.base/share/classes/java/lang/Module.java
Print this page
*** 1362,1389 ****
--- 1362,1392 ----
// -- annotations --
/**
* {@inheritDoc}
+ * <p>Any annotation returned by this method is a declaration annotation.
* This method returns {@code null} when invoked on an unnamed module.
*/
@Override
public <T extends Annotation> T getAnnotation(Class<T> annotationClass) {
return moduleInfoClass().getDeclaredAnnotation(annotationClass);
}
/**
* {@inheritDoc}
+ * <p>Any annotations returned by this method are declaration annotations.
* This method returns an empty array when invoked on an unnamed module.
*/
@Override
public Annotation[] getAnnotations() {
return moduleInfoClass().getAnnotations();
}
/**
* {@inheritDoc}
+ * <p>Any annotations returned by this method are declaration annotations.
* This method returns an empty array when invoked on an unnamed module.
*/
@Override
public Annotation[] getDeclaredAnnotations() {
return moduleInfoClass().getDeclaredAnnotations();
< prev index next >