From 83e260c66e3e8b6aa9fc3848c7590e486ab0ff93 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 19 Mar 2018 23:02:14 +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 --- .../mxchange/jcustomercore/model/customer/ContactCustomer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/mxchange/jcustomercore/model/customer/ContactCustomer.java b/src/org/mxchange/jcustomercore/model/customer/ContactCustomer.java index 73cf76d..840141b 100644 --- a/src/org/mxchange/jcustomercore/model/customer/ContactCustomer.java +++ b/src/org/mxchange/jcustomercore/model/customer/ContactCustomer.java @@ -154,7 +154,7 @@ public class ContactCustomer implements Customer { if (null == customer) { // Should not happen throw new NullPointerException("customer is null"); //NOI18N - } else if (Objects.equals(this, customer)) { + } else if (customer.equals(this)) { // Same object return 0; } -- 2.39.5