author | sherman |
Wed, 28 Mar 2018 08:42:45 -0700 | |
changeset 52156 | 1801fada294a |
parent 52155 | c31b6e1c4383 |
child 52157 | 7593b9b8e8f2 |
src/java.base/share/classes/java/lang/AbstractStringBuilder.java | file | annotate | diff | comparison | revisions |
--- a/src/java.base/share/classes/java/lang/AbstractStringBuilder.java Thu Mar 08 14:04:39 2018 +0800 +++ b/src/java.base/share/classes/java/lang/AbstractStringBuilder.java Wed Mar 28 08:42:45 2018 -0700 @@ -69,10 +69,13 @@ */ int count; + private static final byte[] EMPTYVALUE = new byte[0]; + /** * This no-arg constructor is necessary for serialization of subclasses. */ AbstractStringBuilder() { + value = EMPTYVALUE; } /**