]> git.mxchange.org Git - jaddressbook-share-core.git/blobdiff - src/org/mxchange/jaddressbookshare/model/addressbook/shared/AddressbookShare.java
Continued:
[jaddressbook-share-core.git] / src / org / mxchange / jaddressbookshare / model / addressbook / shared / AddressbookShare.java
index 22b80bb80ee3b43fb7244554eed69560e86fb2de..fa509dd6c4d011bd413409e47c3e8255984c2874 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016 - 2018 Free Software Foundation
+ * Copyright (C) 2016 - 2020 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -120,7 +120,7 @@ public class AddressbookShare implements ShareableAddressbook {
         * @param sharee      User sharee instance
         */
        public AddressbookShare (final Addressbook addressbook, final User sharee) {
-               // Call default constructor
+               // Invoke default constructor
                this();
 
                // Check all conditions
@@ -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;
                }