# | Line 1123 | Line 1123 | public class LinkedTransferQueue<E> exte | |
---|---|---|
1123 | * @return {@code true} if this queue contains no elements | |
1124 | */ | |
1125 | public boolean isEmpty() { | |
1126 | < | return firstOfMode(true) == null; |
1126 | > | for (Node p = head; p != null; p = succ(p)) { |
1127 | > | if (!p.isMatched()) |
1128 | > | return !p.isData; |
1129 | > | } |
1130 | > | return true; |
1131 | } | |
1132 | ||
1133 | public boolean hasWaitingConsumer() { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |