RFR: 8264666: Reuse Math.multiplyExact/addExact in the LCMSImageLayout class
Sergey Bylokhov
serb at openjdk.java.net
Wed Apr 6 21:19:46 UTC 2022
On Fri, 2 Apr 2021 23:02:50 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> - The hand-crafted methods for addition and multiplication are replaced by the "Math" versions.
> - Cleanup: the usage of do/while(false) is removed
I think the usage of these methods in this class is wrong. Both allow negative values which should not be accepted.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3333
More information about the client-libs-dev
mailing list