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

Pankaj Bansal pbansal at openjdk.java.net
Thu Oct 7 09:11:12 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.

looks good to me

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

Marked as reviewed by pbansal (Reviewer).

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



More information about the client-libs-dev mailing list