]> git.mxchange.org Git - juser-core.git/commitdiff
the more usual way ...
authorRoland Häder <roland@mxchange.org>
Wed, 12 Jul 2017 17:53:16 +0000 (19:53 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 12 Jul 2017 17:53:16 +0000 (19:53 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jusercore/model/user/LoginUser.java

index da5c925c8076cf55b2bb817fefe1db3f4cee16bf..e400dc479dfa496f4718d62e7a44fa54072902f0 100644 (file)
@@ -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