]> git.mxchange.org Git - jcontacts-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Mon, 19 Mar 2018 22:04:19 +0000 (23:04 +0100)
committerRoland Häder <roland@mxchange.org>
Mon, 19 Mar 2018 22:04:19 +0000 (23:04 +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/jcontacts/model/contact/UserContact.java

index 0eac7bec55127d596a718bcfad1ad11be346b78a..b91e85dffc6d124f474eb0197fc0ec2ce74f814f 100644 (file)
@@ -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;
                }