From: Roland Häder Date: Fri, 11 Oct 2019 03:38:19 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7d2a1005cd6d77a4bc35bf1856dced1a65ff2b72;p=jaddressbook-core.git Continued: - 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 --- diff --git a/src/org/mxchange/jaddressbook/model/addressbook/UserAddressbook.java b/src/org/mxchange/jaddressbook/model/addressbook/UserAddressbook.java index f6766a8..a952524 100644 --- a/src/org/mxchange/jaddressbook/model/addressbook/UserAddressbook.java +++ b/src/org/mxchange/jaddressbook/model/addressbook/UserAddressbook.java @@ -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; }