ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/PriorityBlockingQueue.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/PriorityBlockingQueue.java (file contents):
Revision 1.53 by jsr166, Sun May 28 23:36:29 2006 UTC vs.
Revision 1.54 by jsr166, Sun May 18 23:47:56 2008 UTC

# Line 503 | Line 503 | public class PriorityBlockingQueue<E> ex
503       */
504      private class Itr implements Iterator<E> {
505          final Object[] array; // Array of all elements
506 <        int cursor;           // index of next element to return;
507 <        int lastRet;          // index of last element, or -1 if no such
506 >        int cursor;           // index of next element to return;
507 >        int lastRet;          // index of last element, or -1 if no such
508  
509          Itr(Object[] array) {
510              lastRet = -1;
# Line 524 | Line 524 | public class PriorityBlockingQueue<E> ex
524  
525          public void remove() {
526              if (lastRet < 0)
527 <                throw new IllegalStateException();
527 >                throw new IllegalStateException();
528              Object x = array[lastRet];
529              lastRet = -1;
530              // Traverse underlying queue to find == element,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines