]> git.mxchange.org Git - juser-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Mon, 19 Mar 2018 22:03:36 +0000 (23:03 +0100)
committerRoland Häder <roland@mxchange.org>
Sat, 31 Mar 2018 16:01:53 +0000 (18:01 +0200)
- Objects.equals() is an overdose here, as a possible null-reference has
  already been checked before
- fixed copyright notice

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jusercore/events/user/created/ObservableCreatedUserEvent.java
src/org/mxchange/jusercore/model/user/LoginUser.java

index d7129d57dbb7fe8e0dfa172d18ff93b58e5ba436..dcbd8fdf0c7f0c6d04190cd46a26bc11102141d9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017, 2018 Free Software Foundation<roland@mxchange.org>
+ * Copyright (C) 2017, 2018 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index 9f6709dfdfd6ef934b970f73cb8c8dba927529f2..1e714a25ea4e4bcacadafb204e72f962a97126a8 100644 (file)
@@ -226,7 +226,7 @@ public class LoginUser implements User {
                if (null == user) {
                        // Should not happen
                        throw new NullPointerException("user is null"); //NOI18N
-               } else if (Objects.equals(this, user)) {
+               } else if (user.equals(this)) {
                        // Same object
                        return 0;
                }