--- jsr166/src/main/java/util/AbstractQueue.java 2003/08/04 01:50:33 1.11 +++ jsr166/src/main/java/util/AbstractQueue.java 2003/08/06 01:57:53 1.12 @@ -28,6 +28,11 @@ public abstract class AbstractQueue // We also inherit, or define, all necessary @throws comments /** + * @throws NullPointerException if the specified element is null + */ + public abstract boolean offer(E o); + + /** * Adds the specified element to this queue. * @return true (as per the general contract of * Collection.add). @@ -49,7 +54,7 @@ public abstract class AbstractQueue * the specified collection is this queue, and this queue is nonempty.) *

* This implementation iterates over the specified collection, and adds - * each object returned by the iterator to this collection, in turn. + * each object returned by the iterator to this queue, in turn. * * @param c collection whose elements are to be added to this queue * @return true if this collection changed as a result of the