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

Comparing jsr166/src/main/java/util/concurrent/ArrayBlockingQueue.java (file contents):
Revision 1.66 by dl, Mon Sep 27 18:14:29 2010 UTC vs.
Revision 1.67 by dl, Mon Sep 27 20:37:47 2010 UTC

# Line 702 | Line 702 | public class ArrayBlockingQueue<E> exten
702          }
703  
704          public E next() {
705            if (remaining <= 0)
706                throw new NoSuchElementException();
705              final ReentrantLock lock = ArrayBlockingQueue.this.lock;
706              lock.lock();
707              try {
708 +                if (remaining <= 0)
709 +                    throw new NoSuchElementException();
710                  lastRet = nextIndex;
711                  E x = lastItem = nextItem;
712                  while (--remaining > 0) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines