InjectInvalidTargetingOnScopingAnnotation
A scoping annotation's Target should include TYPE and METHOD.

Severity
WARNING

The problem

@Scope annotations should be applicable to TYPE (annotating classes that should be scoped) and to METHOD (annotating @Provides methods to apply scoping to the returned object.

If an annotation’s use is restricted by @Target and it doesn’t include those two element types, the annotation can’t be used where it should be able to be used.

Suppression

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