Skip to content

Commit

Permalink
Add missing call to initCompressionFlag()
Browse files Browse the repository at this point in the history
Signed-off-by: Theresa Mammarella <[email protected]>
  • Loading branch information
theresa-m committed Mar 27, 2024
1 parent 24aa06a commit c81cd95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/java.base/share/classes/java/lang/String.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

/*
* ===========================================================================
* (c) Copyright IBM Corp. 2021, 2022 All Rights Reserved
* (c) Copyright IBM Corp. 2021, 2024 All Rights Reserved
* ===========================================================================
*/

Expand Down Expand Up @@ -5309,6 +5309,9 @@ void getBytes(byte[] dst, int srcPos, int dstBegin, byte coder, int length) {
String(byte[] value, byte coder) {
this.value = value;
this.coder = coder;
if (COMPACT_STRINGS && UTF16 == coder) {
initCompressionFlag();
}
}

byte coder() {
Expand Down

0 comments on commit c81cd95

Please sign in to comment.