refactoring suggestion

It would be nice if you could flip between these three sorts of representation of concatenation

x = a + b + c;

x = new StringBuilder().append(a).append(b).append(c).toString();

StringBuilder sb = new StringBuilder();
sb.append(a);
sb.append(b);
sb.append(c);
x = sb.toString();

Then when you insert a newline in any string literal parameter in any form it would do the continuation correctly.

Please sign in to leave a comment.