< prev index next >

src/java.base/share/classes/java/lang/reflect/RecordComponent.java

Print this page

        

*** 178,187 **** --- 178,190 ---- 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,230 **** --- 216,237 ---- 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 >