Inspectopedia Help

Forward compatibility

Reports Java code constructs that may fail to compile in future Java versions.

The following problems are reported:

  • Uses of assert, enum or _ as an identifier

  • Uses of the var, yield, or record restricted identifier as a type name

  • Unqualified calls to methods named yield

  • Modifiers on the requires java.base statement inside of

  • Redundant semicolons between import statements


// This previously legal class does not compile with Java 14, // as 'yield' became a restricted identifier. public class yield {}

Fixing these issues timely may simplify migration to future Java versions.

Locating this inspection


Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | Java | Java language level issues


By default bundled with

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin

Java, 241.18072

Last modified: 18 June 2024