RFR: 8289397: Fix warnings: Possible accidental assignment in place of a comparison. A condition expression should not be reduced to an assignment

Kevin Rushforth kcr at openjdk.org
Tue Jul 26 22:54:57 UTC 2022


On Tue, 26 Jul 2022 21:14:58 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> - replaced with exact functional equivalent (in the presence of exceptions, for example)

I like the changes to avoid any potential confusion altogether. It isn't in a `while` loop, so doing the assignment outside the `if` test seems the most clear.

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

PR: https://git.openjdk.org/jfx/pull/851


More information about the openjfx-dev mailing list