palantir-java-format icon indicating copy to clipboard operation
palantir-java-format copied to clipboard

Reformat string literal concatenation

Open j-baker opened this issue 3 years ago • 0 comments

At present, my IDE will take string literals and automatically break them across lines. An example might be

callMethod("some very very very long string");

which it will break to

callMethod("some very very"
    + " long string");

PJF may then reformat this code to

callMethod(
    "some very very" + " very long string");

when I next save. Maybe the fix here is in PJF (you could make PJF do a good job with string literals), maybe it's in gradle-baseline (IDEA settings).

j-baker avatar Aug 22 '20 10:08 j-baker