This commit is contained in:
Jesper Wilhelmsson 2021-02-04 02:06:33 +00:00
commit 9b7a8f1982
56 changed files with 2576 additions and 148 deletions

View file

@ -4397,7 +4397,7 @@ public final class String
*/
void getBytes(byte[] dst, int srcPos, int dstBegin, byte coder, int length) {
if (coder() == coder) {
System.arraycopy(value, srcPos, dst, dstBegin << coder, length << coder());
System.arraycopy(value, srcPos << coder, dst, dstBegin << coder, length << coder);
} else { // this.coder == LATIN && coder == UTF16
StringLatin1.inflate(value, srcPos, dst, dstBegin, length);
}