RFR: 6434110: Color constructor parameter name is misleading [v2]
Sergey Bylokhov
serb at openjdk.org
Tue Feb 17 20:39:52 UTC 2026
On Tue, 17 Feb 2026 20:28:58 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
>No, it doesn't work without & 0xFF.
Initially, you suggested it without &FF, and my answer was about the text I quoted.
> int expG = (argb >>> 8) & 0xFF;
That is not necessary to use >>> shift for red and green, as well as >> plus &FF for blue.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29734#discussion_r2818952177
More information about the client-libs-dev
mailing list