# | Line 971 | Line 971 | public class LinkedTransferQueue<E> exte | |
---|---|---|
971 | } | |
972 | ||
973 | public final E next() { | |
974 | < | Node p = nextNode; |
975 | < | if (p == null) throw new NoSuchElementException(); |
974 | > | final Node p; |
975 | > | if ((p = nextNode) == null) throw new NoSuchElementException(); |
976 | E e = nextItem; | |
977 | advance(p); | |
978 | return e; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |