QualifierWithTypeUse
Injection frameworks currently don't understand Qualifiers in TYPE_PARAMETER or TYPE_USE contexts.

Severity
WARNING
Tags
FragileCode

The problem

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)

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("QualifierWithTypeUse") to the enclosing element.