Re: ant git commit: Remove redundancies
On Thu, 23 Aug 2018 at 07:06, Stefan Bodewig <bodewig@xxxxxxxxxx> wrote:
> On 2018-08-22, Matt Sicker wrote:
> > Pretty much every implementation of javac will automatically convert the
> > string concatenation code into StringBuilders. Decompile the byte code
> > see for yourself.
> I know that :-)
> The thing I qibble about is the commit message says "remove
> redundancies" and I don't see any redundancy in the original code.
Sorry, my bad. That should have been "early suboptimisation".
I believe, Java 9+ optimises string concatenation differently (or,
actually, it may use invokedynamic to delay it :-).