RFR: JDK-8293776 : Adds CSS 4 and 8 digits hex coded Color [v6]
Alexey Ivanov
aivanov at openjdk.org
Fri Sep 23 16:52:35 UTC 2022
On Fri, 23 Sep 2022 03:33:06 GMT, ScientificWare <duke at openjdk.org> wrote:
> With this change, the code is more concise but we double the number of tests ?
For a rather rare case. I don't think it's a critical path which affects performance.
If you like, you can create a variable to store the result of `n == 4` to avoid testing once again. I still don't think it's worth it.
-------------
PR: https://git.openjdk.org/jdk/pull/10317
More information about the client-libs-dev
mailing list