changeset 8282:d907dff00ace

doc updates - remove periods, clarify unsupported operation exception
author akhil
date Sun, 21 Apr 2013 10:30:42 -0700
parents f51da04f3899
children 720ee175d43d
files src/share/classes/java/util/Collection.java src/share/classes/java/util/List.java
diffstat 2 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/Collection.java	Sun Apr 21 09:36:19 2013 -0700
+++ b/src/share/classes/java/util/Collection.java	Sun Apr 21 10:30:42 2013 -0700
@@ -392,8 +392,9 @@
      *        removed
      * @return {@code true} if any elements were removed
      * @throws NullPointerException if the specified filter is null
-     * @throws UnsupportedOperationException if the {@code removeIf}
-     *         method is not supported by this collection
+     * @throws UnsupportedOperationException if the {@code remove}
+     *         method is not supported by this collection's
+     *         {@link #iterator}
      * @since 1.8
      */
     default boolean removeIf(Predicate<? super E> filter) {
--- a/src/share/classes/java/util/List.java	Sun Apr 21 09:36:19 2013 -0700
+++ b/src/share/classes/java/util/List.java	Sun Apr 21 10:30:42 2013 -0700
@@ -394,7 +394,7 @@
      * replacing the first element.
      *
      * @param operator the operator to apply to each element
-     * @throws UnsupportedOperationException if the <code>replaceAll</code>
+     * @throws UnsupportedOperationException if the {@code set}
      *         operation is not supported by this list
      * @throws NullPointerException if the specified operator is null or
      *         if the element is replaced with a null value and this list
@@ -419,11 +419,11 @@
      *
      * @param c the {@code Comparator} used to compare list elements.
      *          A {@code null} value indicates that the elements'
-     *          {@linkplain Comparable natural ordering} should be used.
+     *          {@linkplain Comparable natural ordering} should be used
      * @throws ClassCastException if the list contains elements that are not
-     *         <i>mutually comparable</i> using the specified comparator.
+     *         <i>mutually comparable</i> using the specified comparator
      * @throws UnsupportedOperationException if the list's list-iterator does
-     *         not support the {@code set} operation.
+     *         not support the {@code set} operation
      * @throws IllegalArgumentException
      *         (<a href="Collection.html#optional-restrictions">optional</a>)
      *         if the comparator is found to violate the {@link Comparator}