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:55:01 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)

Although I'd prefer to do nothing here, 2nd best is to move the assignment out.
The initial proposal has the problem that I mentioned that it doesn't actually solve the problem even
if for some unclear reason it silences eclipse.

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

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


More information about the openjfx-dev mailing list