summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorDavid Gilbert <david.gilbert@object-refinery.com>2006-11-10 16:37:17 +0000
committerDavid Gilbert <david.gilbert@object-refinery.com>2006-11-10 16:37:17 +0000
commit0fe005dac6af99e48e627f78abf571e68adc9ace (patch)
tree6b7e57d455a558841e578f160aebff1ced356587 /java
parent438477620ed4bbe9d77cfbabdec9c5fb7c71548c (diff)
downloadclasspath-0fe005dac6af99e48e627f78abf571e68adc9ace.tar.gz
2006-11-10 David Gilbert <david.gilbert@object-refinery.com>
* java/util/Collections.java (sort(List)): Minor API doc addition, (sort(List, Comparator)): Likewise.
Diffstat (limited to 'java')
-rw-r--r--java/util/Collections.java15
1 files changed, 9 insertions, 6 deletions
diff --git a/java/util/Collections.java b/java/util/Collections.java
index a2538cf1d..43e9104b1 100644
--- a/java/util/Collections.java
+++ b/java/util/Collections.java
@@ -1903,10 +1903,11 @@ public class Collections
* sorts the array, and then iterates over the list setting each element from
* the array.
*
- * @param l the List to sort
+ * @param l the List to sort (<code>null</code> not permitted)
* @throws ClassCastException if some items are not mutually comparable
* @throws UnsupportedOperationException if the List is not modifiable
- * @throws NullPointerException if some element is null
+ * @throws NullPointerException if the list is <code>null</code>, or contains
+ * some element that is <code>null</code>.
* @see Arrays#sort(Object[])
*/
public static void sort(List l)
@@ -1922,13 +1923,15 @@ public class Collections
* sorts the array, and then iterates over the list setting each element from
* the array.
*
- * @param l the List to sort
+ * @param l the List to sort (<code>null</code> not permitted)
* @param c the Comparator specifying the ordering for the elements, or
- * null for natural ordering
+ * <code>null</code> for natural ordering
* @throws ClassCastException if c will not compare some pair of items
* @throws UnsupportedOperationException if the List is not modifiable
- * @throws NullPointerException if null is compared by natural ordering
- * (only possible when c is null)
+ * @throws NullPointerException if the List is <code>null</code> or
+ * <code>null</code> is compared by natural ordering (only possible
+ * when c is <code>null</code>)
+ *
* @see Arrays#sort(Object[], Comparator)
*/
public static void sort(List l, Comparator c)