* src/lib/gnu/java/lang/reflect/Method.java
[cacao.git] / src / lib / gnu / java / lang / reflect / Constructor.java
index e984d3b99800bf645596b1c4b02bf6c0dc558831..c990fbc916af231a612c48288a506526bd28a0c7 100644 (file)
@@ -87,7 +87,7 @@ public final class Constructor<T>
   private int slot;
   private byte[] annotations = null;
   private byte[] parameterAnnotations = null;
-  private transient Map<Class, Annotation> declaredAnnotations = null;
+  private transient Map<Class<? extends Annotation>, Annotation> declaredAnnotations = null;
   
   private static final int CONSTRUCTOR_MODIFIERS
     = Modifier.PRIVATE | Modifier.PROTECTED | Modifier.PUBLIC;
@@ -416,11 +416,11 @@ public final class Constructor<T>
   /**
    * @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