Replace String concatenation with String.valueOf()
MSALReplace 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. ReplaceStringConcatenationWithStringValueOfmod run . --recipe= org. openrewrite. staticanalysis. ReplaceStringConcatenationWithStringValueOfInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.