Back to Intellij Community

ClassNestingDepth

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

2025.3-rc-2288 B
Original Source

Reports classes whose number of nested inner classes exceeds the specified maximum.

Nesting inner classes inside other inner classes is confusing and indicates that a refactoring may be necessary.

Use the Nesting limit field to specify the maximum allowed nesting depth for a class.