Inspectopedia 2025.3 Help

Method from 'java.lang.IO' class can be used

Reports System.out.println() and System.out.print() calls and suggests replacing them with methods from java.lang.IO class.

This inspection helps migrate code to use the newer java.lang.IO class

Example:

System.out.println("Hello, World!");

After the quick-fix is applied:

IO.println("Hello, World!");

Locating this inspection

By ID

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

MigrateToJavaLangIo
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 migration aids | Java 25

Configure the inspection:

  • Use the Report in regular classes option to report and suggest fixes in regular classes

  • Use the Report in compact source files option to report and suggest fixes in compact source files

This inspection depends on the Java feature 'java.lang.IO utility class', which is available since Java 25.

Inspection ID: MigrateToJavaLangIo

New in 2025.2

Inspection options

Here you can find the description of settings available for the Method from 'java.lang.IO' class can be used inspection, and the reference of their default values.

Report in regular classes

Option ID:

processOrdinaryClasses

Default value:

Selected
Report in compact source files

Option ID:

processImplicitClasses

Default value:

Selected

Suppressing Inspection

You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:

//noinspection MigrateToJavaLangIo

More detailed instructions as well as other ways and options that you have can be found in the product documentation:

Inspection Details

By default bundled with:

IntelliJ IDEA 2025.3, Qodana for JVM 2025.3,

Last modified: 03 December 2025