* src/lib/gnu/java/lang/reflect/Method.java
[cacao.git] / src / lib / gnu / java / lang / reflect / Method.java
index fb7936eaeb46aef9c719a3a6e403a7f117984066..a6b9c3241533bdfb750ef7f6fd1f30b69a5f3b41 100644 (file)
@@ -88,7 +88,7 @@ extends AccessibleObject implements Member, GenericDeclaration
   private byte[] annotations          = null;
   private byte[] parameterAnnotations = null;
   private byte[] annotationDefault    = null;
-  private transient Map<Class, Annotation> declaredAnnotations = null;
+  private transient Map<Class<? extends Annotation>, 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<Class, Annotation> declaredAnnotations();
+  private synchronized native Map<Class<? extends Annotation>, Annotation> declaredAnnotations();
   
   /**
    * Returns an array of arrays that represent the annotations on the formal