Replace StringBuilder#append with String
MSALReplace 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. ReplaceStringBuilderWithStringmod run . --recipe= org. openrewrite. staticanalysis. ReplaceStringBuilderWithStringInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.