RFR: 8372651: Remove unreachable code in sun.awt.geom.AreaOp::calculate

Jayathirth D V jdv at openjdk.org
Wed Feb 18 10:24:34 UTC 2026


On Thu, 27 Nov 2025 08:58:50 GMT, wb-zjp846396 <duke at openjdk.org> wrote:

> JBS: https://bugs.openjdk.org/browse/JDK-8372651
> 
> Summary:
> - Fix a constant-condition `if` statement in `AreaOp.java` line 160.
> - Clean up dead code and clarify control flow.
> 
> Testing:
> - No functional modification involved.

We have these debug logs with `if (false)` at multiple places in same file.
These debug logs are easy way for us to track the curves, subcurves, edges when we are working with complex paths.

It will be useful if we maintain them. We can add a debug flag and print these logs only when it is enabled.

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

PR Comment: https://git.openjdk.org/jdk/pull/28528#issuecomment-3919949014


More information about the client-libs-dev mailing list