From 8f18ddc95e2af090d4fc4727732afda5cf38789e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 19 Mar 2018 22:52:57 +0100 Subject: [PATCH] Continued: - Objects.equals() is an overdose here, as a possible null-reference has already been checked before MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../model/addressbook/shared/AddressbookShare.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/mxchange/jaddressbookshare/model/addressbook/shared/AddressbookShare.java b/src/org/mxchange/jaddressbookshare/model/addressbook/shared/AddressbookShare.java index 22b80bb..d483d39 100644 --- a/src/org/mxchange/jaddressbookshare/model/addressbook/shared/AddressbookShare.java +++ b/src/org/mxchange/jaddressbookshare/model/addressbook/shared/AddressbookShare.java @@ -159,7 +159,7 @@ public class AddressbookShare implements ShareableAddressbook { if (null == shareableAddressbook) { // Should not happen throw new NullPointerException("shareableAddressbook is null"); //NOI18N - } else if (Objects.equals(this, shareableAddressbook)) { + } else if (shareableAddressbook.equals(this)) { // Same object return 0; } -- 2.39.5