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

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

# Line 713 | Line 713 | public class LinkedBlockingDeque<E>
713              throw new NullPointerException();
714          if (c == this)
715              throw new IllegalArgumentException();
716 +        if (maxElements <= 0)
717 +            return 0;
718          final ReentrantLock lock = this.lock;
719          lock.lock();
720          try {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines