Skip to content
Snippets Groups Projects
Commit f257c482 authored by Brian Major's avatar Brian Major
Browse files

s1890 - reverted isConsistent() changes

parent 812546bc
No related branches found
No related tags found
No related merge requests found
...@@ -155,23 +155,24 @@ public class User ...@@ -155,23 +155,24 @@ public class User
return false; return false;
} }
if (this.equals(other))
{
return true;
}
for (Principal identity: getIdentities()) for (Principal identity: getIdentities())
{ {
boolean found = false;
for (Principal op: other.getIdentities()) for (Principal op: other.getIdentities())
{ {
if (op.equals(identity)) if (op.equals(identity))
{ {
return true; found = true;
} break;
} }
} }
if (!found)
{
return false; return false;
} }
}
return true;
}
/* (non-Javadoc) /* (non-Javadoc)
* @see java.lang.Object#hashCode() * @see java.lang.Object#hashCode()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment