From 969487d3806473ce7d4be31ef300b376eeb9e3e3 Mon Sep 17 00:00:00 2001 From: Xueming Shen Date: Thu, 19 Nov 2015 12:57:59 -0800 Subject: [PATCH] 8143330: Two implementation methods of AbstractStringBuilder are mistakenly declared as "protected" in JDK9b93 Reviewed-by: darcy, alanb --- .../share/classes/java/lang/AbstractStringBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jdk/src/java.base/share/classes/java/lang/AbstractStringBuilder.java b/jdk/src/java.base/share/classes/java/lang/AbstractStringBuilder.java index 65f3c497b18..3cd12eeac15 100644 --- a/jdk/src/java.base/share/classes/java/lang/AbstractStringBuilder.java +++ b/jdk/src/java.base/share/classes/java/lang/AbstractStringBuilder.java @@ -1584,7 +1584,7 @@ abstract class AbstractStringBuilder implements Appendable, CharSequence { * @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 @@ abstract class AbstractStringBuilder implements Appendable, CharSequence { } /* 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) {