Back to Intellij Community

ClassInheritanceDepth

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

2025.3-rc-2370 B
Original Source

Reports classes that are too deep in the inheritance hierarchy.

Classes that are too deeply inherited may be confusing and indicate that a refactoring is necessary.

All superclasses from a library are treated as a single superclass, libraries are considered unmodifiable.

Use the Inheritance depth limit field to specify the maximum inheritance depth for a class.