# | 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 { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |