]> git.mxchange.org Git - jcustomer-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Mon, 19 Mar 2018 22:02:14 +0000 (23:02 +0100)
committerRoland Häder <roland@mxchange.org>
Mon, 19 Mar 2018 22:02:14 +0000 (23:02 +0100)
- Objects.equals() is an overdose here, as a possible null-reference has
  already been checked before

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcustomercore/model/customer/ContactCustomer.java

index 73cf76d0faf9174160824a7759b71041c0592b6e..840141b83036ce7c92c5b28446bfe1a50185f59d 100644 (file)
@@ -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;
                }