Skip to content

Commit

Permalink
Merge pull request #144 from DmitriyZaitsev/dev
Browse files Browse the repository at this point in the history
fix(BundleServiceComparator): use ternary operator instead of Integer#compare() that requires API level 19
  • Loading branch information
rjrjr committed Apr 28, 2015
2 parents 770aa86 + 42d58c8 commit 6c2d802
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class BundleServiceComparator implements Comparator<BundleService> {
String[] rightPath = right.scope.getPath().split(MortarScope.DIVIDER);

if (leftPath.length != rightPath.length) {
return Integer.compare(leftPath.length, rightPath.length);
return leftPath.length < rightPath.length ? -1 : 1;
}

int segments = leftPath.length;
Expand Down

0 comments on commit 6c2d802

Please sign in to comment.