in src/main/java/org/apache/neethi/util/PolicyComparator.java [134:154]
private static boolean compare(List<PolicyComponent> arg1, List<PolicyComponent> arg2) {
if (arg1.size() != arg2.size()) {
return false;
}
for (PolicyComponent assertion1 : arg1) {
boolean match = false;
for (PolicyComponent assertion2 : arg2) {
if (compare(assertion1, assertion2)) {
match = true;
break;
}
}
if (!match) {
return false;
}
}
return true;
}