On Tue, 19 Aug 2025 18:42:58 GMT, Johannes Döbler <d...@openjdk.org> wrote:

>> Refactor uses of JLAuncheckedNewStringNoRepl(byte[], ISO_8859_1) adding 
>> JLA.uncheckedNewStringWithLatin1Bytes(byte[]).
>> There is no decoding needed, and no exceptions expected or thrown when 
>> creating the string from the supplied latin1 bytes. 
>> If COMPACT_STRINGS is false, the bytes are inflated to UTF16.
>
> src/java.base/share/classes/java/lang/String.java line 773:
> 
>> 771: 
>> 772:         if (COMPACT_STRINGS)
>> 773:             return new String(src, LATIN1);
> 
> small suggestion: add braces around the return statement

Will fix in a future update.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/26831#discussion_r2286096499

Reply via email to