commit
9d1568c654
@ -25,7 +25,7 @@ public class User {
|
|||||||
if (this.getClass() != o.getClass())
|
if (this.getClass() != o.getClass())
|
||||||
return false;
|
return false;
|
||||||
User user = (User) o;
|
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
|
@Override
|
||||||
@ -38,4 +38,5 @@ public class User {
|
|||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
// getters and setters here
|
// getters and setters here
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user