From 7d2a1005cd6d77a4bc35bf1856dced1a65ff2b72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 11 Oct 2019 05:38:19 +0200 Subject: [PATCH] Continued: - improved comment a bit, no need for null-safe Objects.equals() here as above null check does it explicitly MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../jaddressbook/model/addressbook/UserAddressbook.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5