--- jsr166/src/main/java/util/ArrayDeque.java 2005/03/22 16:48:32 1.6 +++ jsr166/src/main/java/util/ArrayDeque.java 2005/04/26 19:54:03 1.7 @@ -24,11 +24,12 @@ import java.io.*; * *
The iterators returned by this class's iterator method are * fail-fast: If the deque is modified at any time after the iterator - * is created, in any way except through the iterator's own remove method, the - * iterator will generally throw a {@link ConcurrentModificationException}. - * Thus, in the face of concurrent modification, the iterator fails quickly - * and cleanly, rather than risking arbitrary, non-deterministic behavior at - * an undetermined time in the future. + * is created, in any way except through the iterator's own remove + * method, the iterator will generally throw a {@link + * ConcurrentModificationException}. Thus, in the face of concurrent + * modification, the iterator fails quickly and cleanly, rather than risking + * arbitrary, non-deterministic behavior at an undetermined time in the + * future. * *
Note that the fail-fast behavior of an iterator cannot be guaranteed
* as it is, generally speaking, impossible to make any hard guarantees in the
@@ -129,7 +130,7 @@ public class ArrayDeque
+ * Returns true if this deque contains no elements.
*
- * @return true if this collection contains no elements.
+ * @return true if this deque contains no elements.
*/
public boolean isEmpty() {
return head == tail;
@@ -659,6 +660,7 @@ public class ArrayDeque