- 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>
/*
- * 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
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;
}