Reports compact source files and suggests replacing them with regular classes.

Example (in file Sample.java):


  void main() {
      String a = "Hello, world!";
  }

After the quick-fix is applied:


public class Sample {
    void main() {
        String a = "Hello, world!";
    }
}

This inspection can help to downgrade for backward compatibility with earlier Java versions.

New in 2024.1