--- jsr166/src/main/java/util/Deque.java 2014/12/31 22:40:51 1.31 +++ jsr166/src/main/java/util/Deque.java 2015/09/29 02:01:55 1.32 @@ -323,9 +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) - * @throws NullPointerException if the specified element is null - * (optional) + * (optional) + * @throws NullPointerException if the specified element is null and this + * deque does not permit null elements + * (optional) */ boolean removeFirstOccurrence(Object o); @@ -341,9 +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) - * @throws NullPointerException if the specified element is null - * (optional) + * (optional) + * @throws NullPointerException if the specified element is null and this + * deque does not permit null elements + * (optional) */ boolean removeLastOccurrence(Object o); @@ -498,9 +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) - * @throws NullPointerException if the specified element is null - * (optional) + * (optional) + * @throws NullPointerException if the specified element is null and this + * deque does not permit null elements + * (optional) */ boolean remove(Object o); @@ -513,9 +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) - * @throws NullPointerException if the specified element is null - * (optional) + * (optional) + * @throws NullPointerException if the specified element is null and this + * deque does not permit null elements + * (optional) */ boolean contains(Object o);