Usages of API which isn't available at the configured language level
Reports usages of the API that is unavailable at the configured language level. This inspection does 3 things:
Highlight usage of generified classes when the language level is below Java 7.
Highlight when default methods are not overridden and the language level is below Java 8.
Highlight usage of API when the language level is lower than marked using the
@since
tag in the documentation.
Use the Forbid API usages option to forbid usages of the API in respect to the project or custom language level.
Inspection options
Option | Type | Default |
---|---|---|
Forbid usages of API newer than | Dropdown | (according to project settings) |
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023