Use String::replace() when first parameter is not a real regular expression

MSAL

When String::replaceAll is used, the first argument should be a real regular expression. If that's not the case, String::replace does exactly the same thing as String::replaceAll without the performance drawback of the regex.

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

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