Allowing a qualifier annotation in TYPE_PARAMETER
or TYPE_USE
contexts
allows end users to write code like:
@Inject Foo(List<@MyAnnotation String> strings)
Guice, Dagger, and other dependency injection frameworks don’t currently see type annotations in this context, so the above code is equivalent to:
@Inject Foo(List<String> strings)
Suppress false positives by adding the suppression annotation @SuppressWarnings("QualifierWithTypeUse")
to the enclosing element.