X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fgnu%2Fjava%2Flang%2Freflect%2FMethod.java;fp=src%2Flib%2Fgnu%2Fjava%2Flang%2Freflect%2FMethod.java;h=a6b9c3241533bdfb750ef7f6fd1f30b69a5f3b41;hb=9e34c54060dfc67d698b015f1da1509b49b565b5;hp=fb7936eaeb46aef9c719a3a6e403a7f117984066;hpb=6d179a879b7b65a8734c24f24237e51dc3f299fe;p=cacao.git diff --git a/src/lib/gnu/java/lang/reflect/Method.java b/src/lib/gnu/java/lang/reflect/Method.java index fb7936eae..a6b9c3241 100644 --- a/src/lib/gnu/java/lang/reflect/Method.java +++ b/src/lib/gnu/java/lang/reflect/Method.java @@ -88,7 +88,7 @@ extends AccessibleObject implements Member, GenericDeclaration private byte[] annotations = null; private byte[] parameterAnnotations = null; private byte[] annotationDefault = null; - private transient Map declaredAnnotations = null; + private transient Map, Annotation> declaredAnnotations = null; private static final int METHOD_MODIFIERS = Modifier.ABSTRACT | Modifier.FINAL | Modifier.NATIVE @@ -486,11 +486,11 @@ extends AccessibleObject implements Member, GenericDeclaration /** * @since 1.5 */ - public Annotation[] getDeclaredAnnotations() { + public Annotation[] getDeclaredAnnotations() { return declaredAnnotations().values().toArray(EMPTY_ANNOTATIONS_ARRAY); } - private synchronized native Map declaredAnnotations(); + private synchronized native Map, Annotation> declaredAnnotations(); /** * Returns an array of arrays that represent the annotations on the formal