--- a/jdk/src/share/classes/java/lang/reflect/Parameter.java Tue Feb 12 09:25:43 2013 -0800
+++ b/jdk/src/share/classes/java/lang/reflect/Parameter.java Wed Feb 13 10:36:36 2013 +0100
@@ -258,7 +258,8 @@
* {@inheritDoc}
* @throws NullPointerException {@inheritDoc}
*/
- public <T extends Annotation> T[] getAnnotations(Class<T> annotationClass) {
+ @Override
+ public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) {
Objects.requireNonNull(annotationClass);
return AnnotationSupport.getMultipleAnnotations(declaredAnnotations(), annotationClass);
@@ -284,11 +285,12 @@
/**
* @throws NullPointerException {@inheritDoc}
*/
- public <T extends Annotation> T[] getDeclaredAnnotations(Class<T> annotationClass) {
+ @Override
+ public <T extends Annotation> T[] getDeclaredAnnotationsByType(Class<T> annotationClass) {
// Only annotations on classes are inherited, for all other
// objects getDeclaredAnnotations is the same as
// getAnnotations.
- return getAnnotations(annotationClass);
+ return getAnnotationsByType(annotationClass);
}
/**