Replace if-else-if-else with switch
MSALReplace 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. IfElseIfConstructToSwitchmod run . --recipe= org. openrewrite. java. migrate. lang. IfElseIfConstructToSwitchInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.