8143330: Two implementation methods of AbstractStringBuilder are mistakenly declared as "protected" in JDK9b93
authorsherman
Thu, 19 Nov 2015 12:57:59 -0800
changeset 33871 73d87430102d
parent 33870 b6912939780c
child 33872 94e3836950ec
8143330: Two implementation methods of AbstractStringBuilder are mistakenly declared as "protected" in JDK9b93 Reviewed-by: darcy, alanb
jdk/src/java.base/share/classes/java/lang/AbstractStringBuilder.java
--- a/jdk/src/java.base/share/classes/java/lang/AbstractStringBuilder.java	Wed Nov 18 20:56:00 2015 +0100
+++ b/jdk/src/java.base/share/classes/java/lang/AbstractStringBuilder.java	Thu Nov 19 12:57:59 2015 -0800
@@ -1584,7 +1584,7 @@
      * @param dstBegin  the char index, not offset of byte[]
      * @param coder     the coder of dst[]
      */
-    protected void getBytes(byte dst[], int dstBegin, byte coder) {
+    void getBytes(byte dst[], int dstBegin, byte coder) {
         if (this.coder == coder) {
             System.arraycopy(value, 0, dst, dstBegin << coder, count << coder);
         } else {        // this.coder == LATIN && coder == UTF16
@@ -1593,7 +1593,7 @@
     }
 
     /* for readObject() */
-    protected void initBytes(char[] value, int off, int len) {
+    void initBytes(char[] value, int off, int len) {
         if (String.COMPACT_STRINGS) {
             this.value = StringUTF16.compress(value, off, len);
             if (this.value != null) {