Don't use final on local variables

MSAL

Remove the final modifier keyword from local variables regardless of whether they are used within a local class or an anonymous class.

org.openrewrite.staticanalysis.NoFinalizedLocalVariables

Optional

excludeMethodParametersBoolean

If true, do not remove final from method parameters.

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

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