# | Line 160 | Line 160 | public class PriorityBlockingQueue<E> ex | |
---|---|---|
160 | * @throws NullPointerException if the specified element is null | |
161 | */ | |
162 | public boolean offer(E e) { | |
163 | – | if (e == null) throw new NullPointerException(); |
163 | final ReentrantLock lock = this.lock; | |
164 | lock.lock(); | |
165 | try { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |