Back to Intellij Community

MigrateToJavaLangIo

java/java-impl/resources/inspectionDescriptions/MigrateToJavaLangIo.html

2025.3-rc-2575 B
Original Source

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!");

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

New in 2025.2