'if' statement with too many branches
Reports if
statements with too many branches.
Such statements may be confusing and are often a sign of inadequate levels of design abstraction.
Use the Maximum number of branches field to specify the maximum number of branches an if
statement is allowed to have.
Inspection options
Option | Type | Default |
---|---|---|
Maximum number of branches | Number | 3 |
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023