RFR: 8377427: Reduce substring allocations in Color.web(String, double) [v2]
Andy Goryachev
angorya at openjdk.org
Fri Feb 13 19:43:07 UTC 2026
On Tue, 10 Feb 2026 19:44:54 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
>> Michael Strauß has updated the pull request incrementally with one additional commit since the last revision:
>>
>> CSS-compliant double parser
>
> modules/javafx.graphics/src/main/java/javafx/scene/paint/Color.java line 437:
>
>> 435:
>> 436: if (len == 3) {
>> 437: r = Integer.parseInt(colorString, offset, offset + 1, 16);
>
> would a switch statement be better in this case (e.g. case when len == 1)?
would it?
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/2069#discussion_r2805714818
More information about the openjfx-dev
mailing list