--- jsr166/src/main/java/util/TreeSet.java 2005/03/22 01:30:10 1.3 +++ jsr166/src/main/java/util/TreeSet.java 2005/03/29 15:00:48 1.4 @@ -255,7 +255,7 @@ public class TreeSet * * @throws ClassCastException if the elements provided cannot be compared * with the elements currently in the set. - * @throws NullPointerException of the specified collection is + * @throws NullPointerException if the specified collection is * null or if any element is null and this map * uses natural ordering, or its comparator does not tolerate * null keys. @@ -299,7 +299,8 @@ public class TreeSet * For example, suppose that s is a navigable set of * strings. The following idiom obtains a view containing all of * the strings in s from low to high, - * inclusive:
 NavigableSet sub = s.subSet(low, high+"\0");
+     * inclusive: 
+     * 
 NavigableSet sub = s.navigableSubSet(low, high+"\0");
      * 
* * A similar technique can be used to generate an open range (which @@ -309,8 +310,8 @@ public class TreeSet * NavigableSet sub = s.navigableSubSet(low+"\0", high); *
* - * @param fromElement low endpoint (inclusive) of the subSet. - * @param toElement high endpoint (exclusive) of the subSet. + * @param fromElement low endpoint (inclusive) of the range. + * @param toElement high endpoint (exclusive) of the range. * @return a view of the portion of this set whose elements range from * fromElement, inclusive, to toElement, * exclusive. @@ -353,13 +354,13 @@ public class TreeSet * * @param toElement high endpoint (exclusive) of the headSet. * @return a view of the portion of this set whose elements are strictly - * less than toElement. + * less than toElement. * @throws ClassCastException if toElement is not compatible * with this set's comparator (or, if the set has no comparator, * if toElement does not implement Comparable). - * @throws IllegalArgumentException if this set is itself a subSet, - * headSet, or tailSet, and toElement is not within the - * specified range of the subSet, headSet, or tailSet. + * @throws IllegalArgumentException if this set is itself a subset, + * and toElement is not within the + * specified range of the subset. * @throws NullPointerException if toElement is null and * this set uses natural ordering, or its comparator does * not tolerate null elements. @@ -396,9 +397,9 @@ public class TreeSet * @throws ClassCastException if fromElement is not compatible * with this set's comparator (or, if the set has no comparator, * if fromElement does not implement Comparable). - * @throws IllegalArgumentException if this set is itself a subSet, - * headSet, or tailSet, and fromElement is not within the - * specified range of the subSet, headSet, or tailSet. + * @throws IllegalArgumentException if this set is itself a subset, + * and fromElement is not within the + * specified range of the subset. * @throws NullPointerException if fromElement is null * and this set uses natural ordering, or its comparator does * not tolerate null elements. @@ -411,8 +412,8 @@ public class TreeSet /** * Equivalent to navigableSubSet but with a return * type conforming to the SortedSet interface. - * @param fromElement low endpoint (inclusive) of the subSet. - * @param toElement high endpoint (exclusive) of the subSet. + * @param fromElement low endpoint (inclusive) of the range. + * @param toElement high endpoint (exclusive) of the range. * @return a view of the portion of this set whose elements range from * fromElement, inclusive, to toElement, * exclusive. @@ -437,13 +438,13 @@ public class TreeSet * * @param toElement high endpoint (exclusive) of the headSet. * @return a view of the portion of this set whose elements are strictly - * less than toElement. + * less than toElement. * @throws ClassCastException if toElement is not compatible * with this set's comparator (or, if the set has no comparator, * if toElement does not implement Comparable). * @throws IllegalArgumentException if this set is itself a subSet, - * headSet, or tailSet, and toElement is not within the - * specified range of the subSet, headSet, or tailSet. + * and toElement is not within the + * specified range of the subset. * @throws NullPointerException if toElement is null and * this set uses natural ordering, or its comparator does * not tolerate null elements. @@ -461,9 +462,9 @@ public class TreeSet * @throws ClassCastException if fromElement is not compatible * with this set's comparator (or, if the set has no comparator, * if fromElement does not implement Comparable). - * @throws IllegalArgumentException if this set is itself a subSet, - * headSet, or tailSet, and fromElement is not within the - * specified range of the subSet, headSet, or tailSet. + * @throws IllegalArgumentException if this set is itself a subset, + * and fromElement is not within the + * specified range of the subset. * @throws NullPointerException if fromElement is null * and this set uses natural ordering, or its comparator does * not tolerate null elements.