Skip to content

Commit

Permalink
similarly iterator(). not sure what's drainTo's behavior is
Browse files Browse the repository at this point in the history
  • Loading branch information
dlg99 committed May 3, 2024
1 parent 29b1b3b commit 9795119
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public int size() {

@Override
public Iterator<Message> iterator() {
return queue.iterator();
return queue.stream().sorted(comparator).iterator();
}

@Override
Expand Down

0 comments on commit 9795119

Please sign in to comment.