Skip to content

Commit

Permalink
#1819 trace format v2
Browse files Browse the repository at this point in the history
 - temporary bug fix
  • Loading branch information
emeroad committed Jul 19, 2016
1 parent 93e166b commit 2f9a694
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ public int compare(SpanEventBo o1, SpanEventBo o2) {
final int asyncId2 = o2.getAsyncId();
final int asyncIdCompare = Integer.compare(asyncId1, asyncId2);
if (asyncIdCompare != 0) {
if (asyncId1 == -1) {
return -1;
}
if (asyncId2 == -1) {
return -1;
}
// bug Comparison method violates its general contract!
// TODO temporary fix
// if (asyncId1 == -1) {
// return -1;
// }
// if (asyncId2 == -1) {
// return -1;
// }
return asyncIdCompare;
}
return Integer.compare(o1.getAsyncSequence(), o2.getAsyncSequence());
Expand Down

0 comments on commit 2f9a694

Please # to comment.