Adopt modern switch features in handwritten Java

MSAL

Use switch expressions and pattern matching in handwritten Java files.

org.openrewrite.java.migrate.HandwrittenSwitchCleanups
mod run . --recipe=org.openrewrite.java.migrate.HandwrittenSwitchCleanups

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