Inspectopedia Help

Class too deep in inheritance tree

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.

Inspection options

Option

Type

Default

Inheritance depth limit

Number

2

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Java, 233.SNAPSHOT

Last modified: 13 July 2023