Replace String concatenation with String.valueOf()

MSAL

Replace inefficient string concatenation patterns like "" + ... with String.valueOf(...). This improves code readability and may have minor performance benefits. The empty string prefix "" + is an indirect way to convert a value to a String, while String.valueOf() clearly communicates the conversion intent.

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

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