Package com.google.errorprone.bugpatterns.inject.guice
package com.google.errorprone.bugpatterns.inject.guice
Bug patterns related to Guice.
-
ClassesClassDescriptionThis checker matches iff *both* of the following conditions are true: 1) The class is assisted: a) If there is a constructor that is annotated with @Inject and that constructor has at least one parameter that is annotated with @Assisted. b) If there is no @Inject constructor and at least one constructor is annotated with
@AssistedInject
. 2) There is an annotation on the class, and the annotation is itself annotated with@ScopeAnnotation
.This checker matches methods that 1) are not themselves annotated with @Inject (neither javax.inject.Inject nor com.google.inject.Inject) 2) descend from a method that is annotated with @com.google.inject.InjectThis checker matches methods that 1) are not themselves annotated with @Inject 2) descend from a method that is annotated with @javax.inject.Inject 3) do not descent from a method that is annotated with @com.google.inject.Inject