# | 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(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |