Use String.contentEquals(CharSequence) instead of String.equals(CharSequence.toString())
MSALUse String.contentEquals(CharSequence) instead of String.equals(CharSequence.toString()).
org. openrewrite. staticanalysis. EqualsToContentEqualsmod run . --recipe= org. openrewrite. staticanalysis. EqualsToContentEqualsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.