in src/main/java/org/apache/sling/jcr/repoinit/impl/AclUtil.java [608:621]
public boolean isEqual(AccessControlEntry other) {
if (!(other instanceof JackrabbitAccessControlEntry)) {
return false;
}
try {
JackrabbitAccessControlEntry otherAce = (JackrabbitAccessControlEntry) other;
return other.getPrincipal().equals(principal) &&
equalPrivileges(other.getPrivileges(), privileges) &&
otherAce.isAllow() == isAllow &&
sameRestrictions(otherAce);
} catch (RepositoryException e) {
throw new IllegalStateException("Cannot verify equivalence of access control entries", e);
}
}