Back to Intellij Community

IfStatementWithTooManyBranches

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

2025.3-rc-2272 B
Original Source

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.