RFR: 8274806: Simplify equals() call on nullable variable and a constant in java.desktop

Sergey Bylokhov serb at openjdk.java.net
Thu Oct 7 09:03:07 UTC 2021


On Sat, 2 Oct 2021 09:14:49 GMT, Andrey Turbanov <github.com+741251+turbanoff at openjdk.org> wrote:

> Flipping arguments of 'equals' method, allows simplifying boolean expressions: now we can remove redundant null check before.

Marked as reviewed by serb (Reviewer).

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

PR: https://git.openjdk.java.net/jdk/pull/5794



More information about the client-libs-dev mailing list