RFR: JDK-8297413: Remove easy warnings in javafx.graphics [v2]
Kevin Rushforth
kcr at openjdk.org
Tue Nov 29 16:05:38 UTC 2022
On Sat, 26 Nov 2022 19:24:21 GMT, Nir Lisker <nlisker at openjdk.org> wrote:
>> The cast has precedence and Java will not downcast mid calculation and lose precision, so all examples here are correct.
>
> `4L * physicalWidth * physicalHeight;` does not require an explicit cast, so I think it's the clearest.
That variant is fine with me.
-------------
PR: https://git.openjdk.org/jfx/pull/960
More information about the openjfx-dev
mailing list