Replace all User.equals for Collaborator.identityEquality

This commit is contained in:
Paulo Gustavo Veiga 2012-11-14 20:35:09 -03:00
parent 596aeeebc4
commit 6560973237
3 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ public enum MindmapFilter {
MY_MAPS("my_maps") {
@Override
boolean accept(@NotNull Mindmap mindmap, @NotNull User user) {
return mindmap.getCreator().equals(user);
return mindmap.getCreator().identityEquality(user);
}
},
STARRED("starred") {

View File

@ -68,7 +68,7 @@ public class RestLockInfo {
}
public boolean isLockedByMe() {
return isLocked() && lockInfo != null && lockInfo.getUser().equals(user);
return isLocked() && lockInfo != null && lockInfo.getUser().identityEquality(user);
}
public void setLockedByMe(boolean lockedForMe) {

View File

@ -69,7 +69,7 @@ class LockManagerImpl implements LockManager {
}
final LockInfo result = this.getLockInfo(mindmap);
if (!result.getUser().equals(user)) {
if (!result.getUser().identityEquality(user)) {
throw new IllegalStateException("Could not update map lock timeout if you are not the locking user. User:" + result.getUser() + ", " + user);
}