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.
-
Class Summary Class Description AssistedInjectAndInjectOnConstructors AssistedInjectAndInjectOnSameConstructor AutoFactoryAtInject CloseableProvides ElementPredicates Predicates forElement
objects related to dependency injection.InjectedConstructorAnnotations A checker for injected constructors with @Inject(optional=true) or binding annotations.InjectOnConstructorOfAbstractClass InjectOnMemberAndConstructor Checks if class constructor and members are both annotated as @Inject.InvalidTargetingOnScopingAnnotation JavaxInjectOnAbstractMethod JavaxInjectOnFinalField MisplacedScopeAnnotations Bug checker for when a scope annotation is used at injection site, which does not have any effect on the injected values.MoreThanOneInjectableConstructor Matches classes that have two or more constructors annotated with @Inject.MoreThanOneQualifier MoreThanOneScopeAnnotationOnClass 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
).OverlappingQualifierAndScopeAnnotation QualifierOrScopeOnInjectMethod QualifierWithTypeUse ScopeAnnotationOnInterfaceOrAbstractClass ScopeOrQualifierAnnotationRetention