From: Roland Häder Date: Wed, 12 Jul 2017 17:53:16 +0000 (+0200) Subject: the more usual way ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=04b7d6f405ae60379347dc09b79108b01ae27274;p=juser-core.git the more usual way ... Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jusercore/model/user/LoginUser.java b/src/org/mxchange/jusercore/model/user/LoginUser.java index da5c925..e400dc4 100644 --- a/src/org/mxchange/jusercore/model/user/LoginUser.java +++ b/src/org/mxchange/jusercore/model/user/LoginUser.java @@ -184,8 +184,13 @@ public class LoginUser implements User { final User other = (User) object; - return ((Objects.equals(this.getUserName(), other.getUserName())) && - (Objects.equals(this.getUserId(), other.getUserId()))); + if (!Objects.equals(this.getUserName(), other.getUserName())) { + return false; + } else if (!Objects.equals(this.getUserId(), other.getUserId())) { + return false; + } + + return true; } @Override