Hidden field

MSAL

Refactor local variables or parameters which shadow a field defined in the same class. Shadowing a field with a local variable of the same name makes it easy to accidentally reference the wrong one, leading to confusing bugs.

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

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