# | Line 501 | Line 501 | public class PriorityBlockingQueue<E> ex | |
---|---|---|
501 | final Object[] array; // Array of all elements | |
502 | int cursor; // index of next element to return; | |
503 | int lastRet; // index of last element, or -1 if no such | |
504 | < | |
504 | > | |
505 | Itr(Object[] array) { | |
506 | lastRet = -1; | |
507 | this.array = array; | |
# | Line 519 | Line 519 | public class PriorityBlockingQueue<E> ex | |
519 | } | |
520 | ||
521 | public void remove() { | |
522 | < | if (lastRet < 0) |
522 | > | if (lastRet < 0) |
523 | throw new IllegalStateException(); | |
524 | Object x = array[lastRet]; | |
525 | lastRet = -1; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |