Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 591 Bytes

File metadata and controls

16 lines (12 loc) · 591 Bytes

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)