Replace StringBuilder#append with String

MSAL

Replace StringBuilder.append() with String concatenation if you are only concatenating a small number of strings and the code is simple and easy to read, as the compiler can optimize simple string concatenation expressions into a single String object, which can be more efficient than using StringBuilder.

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

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