Unnecessary final in try-with-resources

MSAL

Remove the redundant final modifier from resources declared in a try-with-resources statement. Such resources are implicitly final, so the modifier adds no meaning.

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

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