Skip to content

Commit

Permalink
fix: made code compatible with jdk6
Browse files Browse the repository at this point in the history
  • Loading branch information
zemian committed Aug 6, 2017
1 parent e540382 commit f4ec586
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -2237,7 +2237,7 @@ public int compare(byte[][] o1, byte[][] o2) {
try {
int i1 = Integer.parseInt(connection.getEncoding().decode(o1[1]));
int i2 = Integer.parseInt(connection.getEncoding().decode(o2[1]));
return Integer.compare(i1, i2);
return (i1 < i2) ? -1 : ((i1 == i2) ? 0 : 1);
} catch (IOException e) {
return -1; // Should not happen, but if we do, we should avoid breaking the operation.
}
Expand Down

0 comments on commit f4ec586

Please sign in to comment.