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

Comparing jsr166/src/main/java/util/AbstractQueue.java (file contents):
Revision 1.28 by jsr166, Sat May 14 01:55:29 2005 UTC vs.
Revision 1.29 by jsr166, Mon May 16 04:55:20 2005 UTC

# Line 56 | Line 56 | public abstract class AbstractQueue<E>
56       * @return <tt>true</tt> (as per the spec for {@link Collection#add})
57       * @throws IllegalStateException if the element cannot be added at this
58       *         time due to capacity restrictions
59     * @throws NullPointerException if the specified element is null and
60     *         this queue not permit null elements
59       * @throws ClassCastException if the class of the specified element
60       *         prevents it from being added to this queue
61 +     * @throws NullPointerException if the specified element is null and
62 +     *         this queue not permit null elements
63       * @throws IllegalArgumentException if some property of this element
64       *         prevents it from being added to this queue
65       */
# Line 137 | Line 137 | public abstract class AbstractQueue<E>
137       *
138       * @param c collection whose elements are to be added to this queue
139       * @return <tt>true</tt> if this queue changed as a result of the call
140 +     * @throws ClassCastException if the class of an element of the specified
141 +     *         collection prevents it from being added to this queue
142       * @throws NullPointerException if the specified collection contains a
143       *         null element and this queue does not permit null elements,
144       *         or if the specified collection is null
143     * @throws ClassCastException if the class of an element of the specified
144     *         collection prevents it from being added to this queue
145       * @throws IllegalArgumentException if some property of an element of the
146 <     *         specified collection prevents it from being added to this
147 <     *         queue, or if the specified collection is this queue
146 >     *         specified collection prevents it from being added to this
147 >     *         queue, or if the specified collection is this queue
148       * @throws IllegalStateException if not all the elements can be added at
149       *         this time due to insertion restrictions
150       * @see #add(Object)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines