No primitive wrappers for #toString() or #compareTo(..)

MSAL

Primitive wrappers should not be instantiated only for #toString() or #compareTo(..) invocations. Allocating a wrapper object just to call a method that has a static equivalent is wasteful; the static versions avoid the unnecessary object creation.

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

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