Encapsulate public mutable fields
ProprietaryFinds public var fields in classes. Public mutable fields break encapsulation; consider using a private var with accessor methods.
org. openrewrite. scala. cleanup. EncapsulateFieldmod run . --recipe= org. openrewrite. scala. cleanup. EncapsulateFieldInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.