--- jsr166/src/main/java/util/Queue.java 2005/05/14 02:11:52 1.29 +++ jsr166/src/main/java/util/Queue.java 2005/05/16 05:00:52 1.30 @@ -123,10 +123,10 @@ public interface Queue extends Collec * @return true (as per the spec for {@link Collection#add}) * @throws IllegalStateException if the element cannot be added at this * time due to capacity restrictions - * @throws NullPointerException if the specified element is null and - * this queue not permit null elements * @throws ClassCastException if the class of the specified element * prevents it from being added to this queue + * @throws NullPointerException if the specified element is null and + * this queue not permit null elements * @throws IllegalArgumentException if some property of this element * prevents it from being added to this queue */ @@ -142,10 +142,10 @@ public interface Queue extends Collec * @param e the element to add * @return true if the element was added to this queue, else * false - * @throws NullPointerException if the specified element is null and - * this queue does not permit null elements * @throws ClassCastException if the class of the specified element * prevents it from being added to this queue + * @throws NullPointerException if the specified element is null and + * this queue does not permit null elements * @throws IllegalArgumentException if some property of this element * prevents it from being added to this queue */