Package com.google.errorprone.bugpatterns.inject
package com.google.errorprone.bugpatterns.inject
Bug patterns related to dependency
injection and JSR 330. See the various
subpackages for checks related to specific DI frameworks.
-
ClassDescriptionPredicates for
Element
objects related to dependency injection.A checker for injected constructors with @Inject(optional=true) or binding annotations.Checks if class constructor and members are both annotated as @Inject.Bug checker for when a scope annotation is used at injection site, which does not have any effect on the injected values.Matches classes that have two or more constructors annotated with @Inject.This checker matches if a class has more than one annotation that is a scope annotation(that is, the annotation is either annotated with Guice's@ScopeAnnotation
or Javax's@Scope
).