Use switch cases refinement when possible
MSALUse guarded switch case labels and guards if all the statements in the switch block do if/else if/else on the guarded label.
org. openrewrite. java. migrate. lang. RefineSwitchCasesmod run . --recipe= org. openrewrite. java. migrate. lang. RefineSwitchCasesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.