Hide utility class constructor
MSALEnsures utility classes (classes containing only static methods or fields in their API) do not have a public constructor. Instantiating a utility class is almost certainly a mistake, and a private constructor makes that intent clear while preventing misuse.
org. openrewrite. staticanalysis. HideUtilityClassConstructormod run . --recipe= org. openrewrite. staticanalysis. HideUtilityClassConstructorInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.