Inspectopedia Help

Class is closed to inheritance

Reports classes that are declared final. Final classes that extend a sealed class or interface are not reported. Such classes can't be inherited and may indicate a lack of object-oriented design. Some coding standards discourage final classes.

Example:

public final class Main { }

After the quick-fix is applied:

public class Main { }

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Java, 241.16690

Last modified: 29 April 2024