Skip to content

Commit

Permalink
Small improvement over previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Dec 26, 2024
1 parent 7b2adb2 commit af4e2c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ else if(streamAPIMigration2 && !streamAPIMigration1) {
else {
int indexDiff1 = Math.abs(this.getFragment1().getIndex() - this.getFragment2().getIndex());
int indexDiff2 = Math.abs(o.getFragment1().getIndex() - o.getFragment2().getIndex());
if(indexDiff1 != indexDiff2) {
if(indexDiff1 != indexDiff2 && Math.abs(indexDiff1 - indexDiff2) > 1) {
return Integer.valueOf(indexDiff1).compareTo(Integer.valueOf(indexDiff2));
}
}
Expand Down

0 comments on commit af4e2c7

Please sign in to comment.