RFR: Optimize StringBuilder.append(null)

Martin Buchholz martinrb at google.com
Thu Mar 28 06:29:13 UTC 2013


On Wed, Mar 27, 2013 at 4:36 PM, Remi Forax <forax at univ-mlv.fr> wrote:

> On 03/27/2013 03:01 AM, Martin Buchholz wrote:
>
> Hi Martin,
> the code looks good,
> I've just noticed that you declare the char array value final in appendNull
> but it's not something that is usually done in the java.lang codebase.
>

It's certainly common in java.util.concurrent.  It's safer.  The
declaration saves 50 bytes of bytecode.



More information about the core-libs-dev mailing list