Skip to content

Commit

Permalink
[BZ-1227866] fix RuleHierarchyComparator
Browse files Browse the repository at this point in the history
  • Loading branch information
mariofusco committed Jul 6, 2015
1 parent bea40ee commit 38c9e9a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -197,7 +197,7 @@ private <T extends BaseDescr> void diffDescrs(byte[] ob, byte[] cb,
private static class RuleHierarchyComparator implements Comparator<RuleDescr> {
@Override
public int compare( RuleDescr r1, RuleDescr r2 ) {
return r1.getName().equals( r2.getParentName() ) ? -1 : r1.getName().equals( r2.getParentName() ) ? 1 : 0;
return r1.getName().equals( r2.getParentName() ) ? -1 : r2.getName().equals( r1.getParentName() ) ? 1 : 0;
}
}

Expand Down

0 comments on commit 38c9e9a

Please sign in to comment.