RFR: 6434110: Color constructor parameter name is misleading [v2]

Alexey Ivanov aivanov at openjdk.org
Fri Feb 20 13:54:42 UTC 2026


On Thu, 19 Feb 2026 20:08:14 GMT, Phil Race <prr at openjdk.org> wrote:

>> src/java.desktop/share/classes/java/awt/Color.java line 337:
>> 
>>> 335:      * on finding the best match given the color space
>>> 336:      * available for a given output device.
>>> 337:      * Alpha defaults to 255.
>> 
>> I think it's better this way, but I'll leave it to Phil.
>
> Either way is OK.

Then I prefer *“defaults”*, and Sergey has updated the PR.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/29734#discussion_r2833257985


More information about the client-libs-dev mailing list