[OpenJDK 2D-Dev] RFR: 8264666: Reuse Math.multiplyExact/addExact in the LCMSImageLayout class
Sergey Bylokhov
serb at openjdk.java.net
Wed Apr 7 19:56:01 UTC 2021
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
The nice PR number: 3333!
src/java.desktop/share/classes/sun/java2d/cmm/lcms/LCMSImageLayout.java line 241:
> 239: l.imageAtOnce = true;
> 240: }
> 241: } while (false);
Any idea why the "do/while(false)" was used here?
-------------
PR: https://git.openjdk.java.net/jdk/pull/3333
More information about the 2d-dev
mailing list