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