hibernate / hibernate-models

An abstraction over "reflection" and annotations
Apache License 2.0
2 stars 5 forks source link

Fix signature of AnnotationTarget#getMetaAnnotated #29

Closed sebersole closed 4 months ago

sebersole commented 4 months ago

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).