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

Comparing jsr166/src/main/java/util/concurrent/PriorityBlockingQueue.java (file contents):
Revision 1.5 by dl, Sun Jun 22 21:47:17 2003 UTC vs.
Revision 1.6 by dl, Tue Jun 24 14:34:48 2003 UTC

# Line 10 | Line 10 | import java.util.*;
10   /**
11   * An unbounded blocking queue based on a {@link PriorityQueue},
12   * obeying its ordering rules and implementation characteristics.
13 < **/
13 > * @since 1.5
14 > * @author Doug Lea
15 > **/
16   public class PriorityBlockingQueue<E> extends AbstractQueue<E>
17          implements BlockingQueue<E>, java.io.Serializable {
18  
# Line 71 | Line 73 | public class PriorityBlockingQueue<E> ex
73      }
74  
75      public boolean offer(E x) {
76 <        if (x == null) throw new IllegalArgumentException();
76 >        if (x == null) throw new NullPointerException();
77          lock.lock();
78          try {
79              boolean ok = q.offer(x);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines