# | Line 850 | Line 850 | public class PriorityBlockingQueue<E> ex | |
---|---|---|
850 | public E next() { | |
851 | if (cursor >= array.length) | |
852 | throw new NoSuchElementException(); | |
853 | < | lastRet = cursor; |
854 | < | return (E)array[cursor++]; |
853 | > | return (E)array[lastRet = cursor++]; |
854 | } | |
855 | ||
856 | public void remove() { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |