Fix signature of AnnotationTarget#getMetaAnnotated. Currently it defines its return as List<AnnotationUsage<?>>, but that should really be List<AnnotationUsage<? extends Annotation>>.
Even though AnnotationUsage's type parameter already says the bound needs to extend Annotation, the compiler complains when callers of this method try to treat the result as List<AnnotationUsage<? extends Annotation>> (even though IJ, e.g., does not).
Fix signature of
AnnotationTarget#getMetaAnnotated
. Currently it defines its return asList<AnnotationUsage<?>>
, but that should really beList<AnnotationUsage<? extends Annotation>>
.Even though
AnnotationUsage
's type parameter already says the bound needs to extendAnnotation
, the compiler complains when callers of this method try to treat the result asList<AnnotationUsage<? extends Annotation>>
(even though IJ, e.g., does not).