RFR: 8331108: Unused Math.abs call in java.lang.FdLibm.Expm1#compute

Joe Darcy darcy at openjdk.org
Thu Apr 25 21:37:57 UTC 2024


On Thu, 25 Apr 2024 21:32:03 GMT, Joe Darcy <darcy at openjdk.org> wrote:

> Remove unnecessary setting of variable y, found by an IDE inspection noted in the bug report.

All Math and StrictMath regression tests pass with this change. Examining the code, y does look to be overwritten on all the code paths where it factors into the returned result.

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

PR Comment: https://git.openjdk.org/jdk/pull/18963#issuecomment-2078210519


More information about the core-libs-dev mailing list