Case-insensitive comparisons do not alter case

MSAL

Remove 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.CaseInsensitiveComparisonsDoNotChangeCase
mod run . --recipe=org.openrewrite.staticanalysis.CaseInsensitiveComparisonsDoNotChangeCase

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