<i18n dev> Integrated: 8274806: Simplify equals() call on nullable variable and a constant in java.desktop

Andrey Turbanov github.com+741251+turbanoff at openjdk.java.net
Sat Oct 9 00:49:11 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.

This pull request has now been integrated.

Changeset: f640c7aa
Author:    Andrey Turbanov <turbanoff at gmail.com>
Committer: Sergey Bylokhov <serb at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/f640c7aaa852b6c0e9144654b7222a6777201370
Stats:     17 lines in 11 files changed: 0 ins; 1 del; 16 mod

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

Reviewed-by: serb, pbansal

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

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


More information about the i18n-dev mailing list