RFR: 8365719: Refactor uses of JLA.uncheckedNewStringNoRepl
Chen Liang
liach at openjdk.org
Mon Aug 18 22:35:41 UTC 2025
On Mon, 18 Aug 2025 21:34:39 GMT, Roger Riggs <rriggs at 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.
A necessary simplification. Reviewed the copyright years too.
-------------
Marked as reviewed by liach (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/26831#pullrequestreview-3130153832
More information about the core-libs-dev
mailing list