Replace if-else-if-else with switch

MSAL

Replace if-else-if-else with switch statements. In order to be replaced with a switch, all conditions must be on the same variable and there must be at least three cases.

org.openrewrite.java.migrate.lang.IfElseIfConstructToSwitch
mod run . --recipe=org.openrewrite.java.migrate.lang.IfElseIfConstructToSwitch

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.