--- old/src/java.base/share/classes/java/util/Collection.java 2017-08-23 11:36:44.703017557 -0700 +++ new/src/java.base/share/classes/java/util/Collection.java 2017-08-23 11:36:44.483007910 -0700 @@ -171,10 +171,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); @@ -301,10 +301,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 */ @@ -323,11 +323,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) */ @@ -373,11 +373,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) @@ -432,11 +432,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)