< prev index next >
src/java.base/share/classes/java/lang/reflect/RecordComponent.java
Print this page
@@ -178,10 +178,13 @@
public Method getAccessor() {
return accessor;
}
/**
+ * {@inheritDoc}
+ * <p>Note that any annotation returned by this method is a
+ * declaration annotation.
* @throws NullPointerException {@inheritDoc}
*/
@Override
public <T extends Annotation> T getAnnotation(Class<T> annotationClass) {
Objects.requireNonNull(annotationClass);
@@ -213,18 +216,22 @@
return declAnnos;
}
/**
* {@inheritDoc}
+ * <p>Note that any annotations returned by this method are
+ * declaration annotations.
*/
@Override
public Annotation[] getAnnotations() {
return getDeclaredAnnotations();
}
/**
* {@inheritDoc}
+ * <p>Note that any annotations returned by this method are
+ * declaration annotations.
*/
@Override
public Annotation[] getDeclaredAnnotations() { return AnnotationParser.toArray(declaredAnnotations()); }
/**
< prev index next >