8197881: Better StringBuilder support

Reviewed-by: rriggs
This commit is contained in:
Xueming Shen 2018-03-28 08:42:45 -07:00
parent 532d4a59c6
commit 02876bfceb

View file

@ -69,10 +69,13 @@ abstract class AbstractStringBuilder implements Appendable, CharSequence {
*/ */
int count; int count;
private static final byte[] EMPTYVALUE = new byte[0];
/** /**
* This no-arg constructor is necessary for serialization of subclasses. * This no-arg constructor is necessary for serialization of subclasses.
*/ */
AbstractStringBuilder() { AbstractStringBuilder() {
value = EMPTYVALUE;
} }
/** /**