--- old/src/java.base/share/classes/java/util/Collection.java 2018-03-26 16:45:44.249781275 -0700 +++ new/src/java.base/share/classes/java/util/Collection.java 2018-03-26 16:45:44.009770750 -0700 @@ -188,7 +188,7 @@ * unmodifiable view, the view can be considered effectively immutable. * *

This interface is a member of the - * + * * Java Collections Framework. * * @implSpec @@ -247,10 +247,10 @@ * element * @throws ClassCastException if the type of the specified element * is incompatible with this collection - * (optional) + * (optional) * @throws NullPointerException if the specified element is null and this * collection does not permit null elements - * (optional) + * (optional) */ boolean contains(Object o); @@ -379,10 +379,10 @@ * @return {@code true} if an element was removed as a result of this call * @throws ClassCastException if the type of the specified element * is incompatible with this collection - * (optional) + * (optional) * @throws NullPointerException if the specified element is null and this * collection does not permit null elements - * (optional) + * (optional) * @throws UnsupportedOperationException if the {@code remove} operation * is not supported by this collection */ @@ -401,11 +401,11 @@ * @throws ClassCastException if the types of one or more elements * in the specified collection are incompatible with this * collection - * (optional) + * (optional) * @throws NullPointerException if the specified collection contains one * or more null elements and this collection does not permit null * elements - * (optional), + * (optional), * or if the specified collection is null. * @see #contains(Object) */ @@ -451,11 +451,11 @@ * @throws ClassCastException if the types of one or more elements * in this collection are incompatible with the specified * collection - * (optional) + * (optional) * @throws NullPointerException if this collection contains one or more * null elements and the specified collection does not support * null elements - * (optional), + * (optional), * or if the specified collection is null * @see #remove(Object) * @see #contains(Object) @@ -510,11 +510,11 @@ * @throws ClassCastException if the types of one or more elements * in this collection are incompatible with the specified * collection - * (optional) + * (optional) * @throws NullPointerException if this collection contains one or more * null elements and the specified collection does not permit null * elements - * (optional), + * (optional), * or if the specified collection is null * @see #remove(Object) * @see #contains(Object)