]> git.mxchange.org Git - jaddressbook-share-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Mon, 19 Mar 2018 21:52:57 +0000 (22:52 +0100)
committerRoland Häder <roland@mxchange.org>
Mon, 19 Mar 2018 21:52:57 +0000 (22:52 +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/jaddressbookshare/model/addressbook/shared/AddressbookShare.java

index 22b80bb80ee3b43fb7244554eed69560e86fb2de..d483d39d01df5c1f3fbb48507310583dac5a56f5 100644 (file)
@@ -159,7 +159,7 @@ public class AddressbookShare implements ShareableAddressbook {
                if (null == shareableAddressbook) {
                        // Should not happen
                        throw new NullPointerException("shareableAddressbook is null"); //NOI18N
-               } else if (Objects.equals(this, shareableAddressbook)) {
+               } else if (shareableAddressbook.equals(this)) {
                        // Same object
                        return 0;
                }