gradle-baseline icon indicating copy to clipboard operation
gradle-baseline copied to clipboard

bug in StringBuilderConstantParameters fixer

Open nakulj opened this issue 1 year ago • 0 comments

What happened?

Correctly spots a StringBuilderConstantParameters here, but suggests an incorrect fix:

new StringBuilder(foo)
  .append("_")
  .append(bar)
  .toString()
  .toLowerCase();

Suggestion:

foo + "_" + bar.toLowerCase();

What did you want to happen?

(foo + "_" + bar).toLowerCase();

nakulj avatar Jun 04 '24 20:06 nakulj