Remove redundant null checks before literal equals
MSALRemoves redundant null checks before equals() comparisons when the receiver is a literal string, since literals can never be null and equals() returns false for null arguments.
org. openrewrite. staticanalysis. RemoveRedundantNullCheckBeforeLiteralEqualsmod run . --recipe= org. openrewrite. staticanalysis. RemoveRedundantNullCheckBeforeLiteralEqualsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.