Java
Class is closed to inheritance
Warning
New
Last modified: 03 December 2024 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 {
}
- 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.
FinalClass
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Java, 243.23126 |
Thanks for your feedback!
Was this page helpful?