From: Roland Häder Date: Mon, 19 Mar 2018 22:03:36 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b080ab7d61c274d2a3ed2ee84f70fa2b75970c40;p=juser-core.git Continued: - 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 --- diff --git a/src/org/mxchange/jusercore/events/user/created/ObservableCreatedUserEvent.java b/src/org/mxchange/jusercore/events/user/created/ObservableCreatedUserEvent.java index d7129d5..dcbd8fd 100644 --- a/src/org/mxchange/jusercore/events/user/created/ObservableCreatedUserEvent.java +++ b/src/org/mxchange/jusercore/events/user/created/ObservableCreatedUserEvent.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017, 2018 Free Software Foundation + * 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 diff --git a/src/org/mxchange/jusercore/model/user/LoginUser.java b/src/org/mxchange/jusercore/model/user/LoginUser.java index 9f6709d..1e714a2 100644 --- a/src/org/mxchange/jusercore/model/user/LoginUser.java +++ b/src/org/mxchange/jusercore/model/user/LoginUser.java @@ -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; }