]> git.mxchange.org Git - jaddressbook-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 11 Oct 2019 03:38:19 +0000 (05:38 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 11 Oct 2019 03:38:19 +0000 (05:38 +0200)
- improved comment a bit, no need for null-safe Objects.equals() here as above
  null check does it explicitly

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jaddressbook/model/addressbook/UserAddressbook.java

index f6766a80086c39c78d087993a85e6c3828551a29..a95252403e6f2f9901e23c538731eb361bb7ed42 100644 (file)
@@ -144,7 +144,7 @@ public class UserAddressbook implements Addressbook {
                        // Should not happen
                        throw new NullPointerException("addressbook is null"); //NOI18N
                } else if (addressbook.equals(this)) {
-                       // Same object
+                       // Same object, below "expensive" code can be safely skipped
                        return 0;
                }