Case-insensitive comparisons do not alter case
MSALRemove String#toLowerCase() or String#toUpperCase() from String#equalsIgnoreCase(..) comparisons. Changing case before a case-insensitive comparison is redundant and allocates unnecessary intermediate String objects.
org. openrewrite. staticanalysis. CaseInsensitiveComparisonsDoNotChangeCasemod run . --recipe= org. openrewrite. staticanalysis. CaseInsensitiveComparisonsDoNotChangeCaseInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.