From: Roland Häder Date: Mon, 19 Mar 2018 22:02:14 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=83e260c66e3e8b6aa9fc3848c7590e486ab0ff93;p=jcustomer-core.git Continued: - Objects.equals() is an overdose here, as a possible null-reference has already been checked before Signed-off-by: Roland Häder --- 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; }