fix equals method

This commit is contained in:
Loredana Crusoveanu 2018-08-17 15:39:55 +03:00
parent fad21ead40
commit 79a8c80853
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ public class User {
if (this.getClass() != o.getClass())
return false;
User user = (User) o;
return id != user.id && (!name.equals(user.name) && !email.equals(user.email));
return id == user.id && (name.equals(user.name) && email.equals(user.email));
}
@Override