RFR: 8370013: Refactor Double.toHexString to eliminate regex and StringBuilder [v2]
Raffaello Giulietti
rgiulietti at openjdk.org
Mon Oct 20 14:18:13 UTC 2025
On Mon, 20 Oct 2025 14:11:31 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:
>> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
>>
>> from @jddarcy
>
> src/java.base/share/classes/java/lang/Double.java line 713:
>
>> 711: else {
>> 712: boolean negative = Math.copySign(1.0, d) == -1.0;
>> 713: d = Math.abs(d);
>
> Move this down, after the check for `0.0`.
(I mean, the line with `abs()`)
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27811#discussion_r2445155924
More information about the core-libs-dev
mailing list