Use String.CASE_INSENSITIVE_ORDER

MSAL

Replaces case-insensitive string comparator lambdas and method references with the JDK constant String.CASE_INSENSITIVE_ORDER. Improves readability.

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

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