Flipping arguments of 'equals' method, allows simplifying boolean expressions: now we can remove redundant null check before.
------------- Commit messages: - [PATCH] Simplify equals() call on nullable variable and a constant in java.desktop - [PATCH] Simplify equals() call on nullable variable and a constant Changes: https://git.openjdk.java.net/jdk/pull/5794/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5794&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8274806 Stats: 17 lines in 11 files changed: 0 ins; 1 del; 16 mod Patch: https://git.openjdk.java.net/jdk/pull/5794.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/5794/head:pull/5794 PR: https://git.openjdk.java.net/jdk/pull/5794