I have a block of code which creates a StringBuilder, then appends() several Strings (some of which are method parameters) before doing something with the resulting String.
IntelliJ is suggesting that this should be replaced by String concatenation, instead. Why?
As some of the Strings are method parameters, the compiler can't pre-concatenate the strings at compile time, so it'll just use a StringBuilder under the bonnet to do the job, anyway.
I can't see why turning a manual creation of a StringBuilder into an implicit creation is any better?
What am I missing?