switch
statements are useful when many code paths branch depending on the value of a single expression. For just one or two code paths, the code will be more readable with if
statements.-Drewrite.activeRecipes=org.openrewrite.java.cleanup.MinimumSwitchCases