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.49 by dl, Tue Nov 22 11:45:30 2005 UTC vs.
Revision 1.50 by jsr166, Wed Nov 23 05:33:03 2005 UTC

# 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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines