--- jsr166/src/main/java/util/Deque.java 2015/09/29 02:01:55 1.32 +++ jsr166/src/main/java/util/Deque.java 2016/03/22 15:27:58 1.34 @@ -145,7 +145,7 @@ package java.util; * that do allow null elements are strongly encouraged not to * take advantage of the ability to insert nulls. This is so because * {@code null} is used as a special return value by various methods - * to indicated that the deque is empty. + * to indicate that the deque is empty. * *

{@code Deque} implementations generally do not define * element-based versions of the {@code equals} and {@code hashCode} @@ -323,10 +323,10 @@ public interface Deque extends Queue< * @return {@code true} if an element was removed as a result of this call * @throws ClassCastException if the class of the specified element * is incompatible with this deque - * (optional) + * (optional) * @throws NullPointerException if the specified element is null and this * deque does not permit null elements - * (optional) + * (optional) */ boolean removeFirstOccurrence(Object o); @@ -342,10 +342,10 @@ public interface Deque extends Queue< * @return {@code true} if an element was removed as a result of this call * @throws ClassCastException if the class of the specified element * is incompatible with this deque - * (optional) + * (optional) * @throws NullPointerException if the specified element is null and this * deque does not permit null elements - * (optional) + * (optional) */ boolean removeLastOccurrence(Object o); @@ -500,10 +500,10 @@ public interface Deque extends Queue< * @return {@code true} if an element was removed as a result of this call * @throws ClassCastException if the class of the specified element * is incompatible with this deque - * (optional) + * (optional) * @throws NullPointerException if the specified element is null and this * deque does not permit null elements - * (optional) + * (optional) */ boolean remove(Object o); @@ -516,10 +516,10 @@ public interface Deque extends Queue< * @return {@code true} if this deque contains the specified element * @throws ClassCastException if the class of the specified element * is incompatible with this deque - * (optional) + * (optional) * @throws NullPointerException if the specified element is null and this * deque does not permit null elements - * (optional) + * (optional) */ boolean contains(Object o);