Overly nested method
Reports methods whose body contain too deeply nested statements.
Methods with too deep statement nesting may be confusing and are a good sign that refactoring may be necessary.
Use the Nesting depth limit field to specify the maximum allowed nesting depth for a method.
Inspection options
Option | Type | Default |
---|---|---|
Nesting depth limit | Number | 5 |
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023