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

Comparing jsr166/src/jdk7/java/util/concurrent/ArrayBlockingQueue.java (file contents):
Revision 1.2 by jsr166, Sun Feb 17 06:11:39 2013 UTC vs.
Revision 1.3 by jsr166, Sun Feb 17 16:44:56 2013 UTC

# Line 397 | Line 397 | public class ArrayBlockingQueue<E> exten
397          final ReentrantLock lock = this.lock;
398          lock.lock();
399          try {
400 <            return (count == 0) ? null : itemAt(takeIndex);
400 >            return itemAt(takeIndex); // null when queue is empty
401          } finally {
402              lock.unlock();
403          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines