Incorrect dependency injection place
Reports incorrect injection points: fields, methods, and parameters annotated with @Inject
that violate the CDI specification.
Requirements for fields:
Cannot be static or final
Cannot be annotated with
@Produces
Requirements for methods with injection:
Cannot be static or abstract
Cannot have parameters with
@Disposes
and@Observes
annotations
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Jakarta EE: Contexts and Dependency Injection (CDI), 233.SNAPSHOT |
Last modified: 13 July 2023