Java 25
- Compact source file can be replaced with a regular class
Reports compact source files and suggests replacing them with regular classes.
- Explicit class declaration can be converted into a compact source file
Reports ordinary classes, which can be converted into compact source files Example: public class Sample { public static void main(String[] args) { System.out.println("Hello, world!"); } } After the quick-fix is applied: void main() { IO.println("Hello, world!"); }.
- 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.
- Method from 'System.out' can be used instead of 'java.lang.IO'
Reports IO.println() and IO.print() calls and suggests replacing them with System.out methods.
Last modified: 03 November 2025