Fall through

MSAL

Checks for fall-through in switch statements, adding break statements in locations where a case contains Java code but does not have a break, return, throw, or continue statement. Unintentional fall-through is a common source of bugs, as execution silently continues into the next case branch.

org.openrewrite.staticanalysis.FallThrough
mod run . --recipe=org.openrewrite.staticanalysis.FallThrough

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