Injection point with ambiguous dependencies
Reports injection points in bean classes that have ambiguous dependencies.
Example:
interface Engine {}
@Singleton
class GasEngine implements Engine {}
@Singleton
class ElectricEngine implements Engine {}
@Singleton
class Car {
@Inject Engine engine; // Ambiguous dependency: there are multiple beans that match the injection point
}
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