--- jsr166/src/main/java/util/AbstractQueue.java 2003/07/26 13:17:51 1.5 +++ jsr166/src/main/java/util/AbstractQueue.java 2003/07/28 04:11:54 1.6 @@ -25,7 +25,7 @@ public abstract class AbstractQueue e throw new IllegalStateException("Queue full"); } - public E remove() { + public E remove() throws NoSuchElementException { E x = poll(); if (x != null) return x; @@ -33,7 +33,7 @@ public abstract class AbstractQueue e throw new NoSuchElementException(); } - public E element() { + public E element() throws NoSuchElementException { E x = peek(); if (x != null) return x; @@ -46,5 +46,11 @@ public abstract class AbstractQueue e ; } + // why is this here? Won't Collection declare this itself??? - David public abstract Iterator iterator(); } + + + + +