Skip to content

Commit

Permalink
[BZ-1227866] fix RuleHierarchyComparator
Browse files Browse the repository at this point in the history
(cherry picked from commit 38c9e9a)
  • Loading branch information
mariofusco committed Jul 7, 2015
1 parent 5f40938 commit e59be95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,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 e59be95

Please sign in to comment.