Reports any if statements with which can be replaced by a switch statement. This inspection will automatically suggest string switches when the project language level is jdk 1.7 or higher.

Use the text field below to indicate the minimum number of case branches the resulting switch statement should have.

Use the first checkbox below to have this inspection suggest switch statements on primitive and boxed numbers and characters.

Use the second checkbox below to have this inspection suggest switch statements on enum constants.

New in 10.5