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

Comparing jsr166/src/main/java/util/concurrent/LinkedBlockingQueue.java (file contents):
Revision 1.62 by jsr166, Thu Jun 9 07:48:43 2011 UTC vs.
Revision 1.63 by jsr166, Tue Jun 14 03:22:38 2011 UTC

# Line 698 | Line 698 | public class LinkedBlockingQueue<E> exte
698              throw new NullPointerException();
699          if (c == this)
700              throw new IllegalArgumentException();
701 +        if (maxElements <= 0)
702 +            return 0;
703          boolean signalNotFull = false;
704          final ReentrantLock takeLock = this.takeLock;
705          takeLock.lock();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines