RFR: JDK-8310502 : Optimization for j.l.Long.fastUUID() [v24]
Roger Riggs
rriggs at openjdk.org
Mon Jun 26 14:43:15 UTC 2023
On Mon, 26 Jun 2023 09:52:10 GMT, 温绍锦 <duke at openjdk.org> wrote:
>> src/java.base/share/classes/java/util/UUID.java line 515:
>>
>>> 513:
>>> 514: try {
>>> 515: return jla.newStringNoRepl(buf, StandardCharsets.ISO_8859_1);
>>
>> in java.base it's better to use `ISO_8859_1.INSTANCE` directly instead of `StandardCharsets.ISO_8859_1`.
>> See [JDK-8234147](https://bugs.openjdk.org/browse/JDK-8234147)
>
> done
I don't see that it is better and it is unnecessarily spreading around parts of the implementation of charsets that can use the public API.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14578#discussion_r1242307186
More information about the core-libs-dev
mailing list