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

Phil Race prr at openjdk.org
Tue Jul 26 22:54:59 UTC 2022


On Tue, 26 Jul 2022 22:31:13 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

> So the question we should ask for boolean vars, where Java is as prone to this confusion as C/C++: is using the same "test explicitly" pattern sufficient? And if not, would a comment help?

2 / 3 already have the comment.

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

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


More information about the openjfx-dev mailing list