Inspectopedia Help

Inner class too deeply nested

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.

Inspection options

Option

Type

Default

Nesting limit

Number

1

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Java, 233.SNAPSHOT

Last modified: 13 July 2023