From d13a814b3c4b7b9c3706b918bcac0d762ce71de5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 19 Mar 2018 23:04:19 +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 --- src/org/mxchange/jcontacts/model/contact/UserContact.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/mxchange/jcontacts/model/contact/UserContact.java b/src/org/mxchange/jcontacts/model/contact/UserContact.java index 0eac7be..b91e85d 100644 --- a/src/org/mxchange/jcontacts/model/contact/UserContact.java +++ b/src/org/mxchange/jcontacts/model/contact/UserContact.java @@ -248,7 +248,7 @@ public class UserContact implements Contact { if (null == contact) { // Should not happen throw new NullPointerException("contact is null"); //NOI18N - } else if (Objects.equals(this, contact)) { + } else if (contact.equals(this)) { // Same object return 0; } -- 2.39.5