final User other = (User) object;
- return ((Objects.equals(this.getUserName(), other.getUserName()))
- && (Objects.equals(this.getUserId(), other.getUserId())));
+ return ((Objects.equals(this.getUserName(), other.getUserName())) &&
+ (Objects.equals(this.getUserId(), other.getUserId())));
}
@Override
* <p>
* @param container Container holding user instance and unencrypted password
* @param updatedUser Updated user instance from database
+ * <p>
* @return Whethet the password matches
*/
public static boolean ifPasswordMatches (final LoginContainer container, final User updatedUser) {