Skip to content

Commit

Permalink
fix(BundleServiceComparator): use ternary operator instead of Integer…
Browse files Browse the repository at this point in the history
…#compare() that requires API level 19
  • Loading branch information
DmitriyZaitsev committed Apr 23, 2015
1 parent ea4dd31 commit 42d58c8
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 42d58c8

Please sign in to comment.