changeset 7132:be04d004a78c

[JAVADOC] RT-37281 SortedList has wrong javadoc documentation
author Martin Sladecek <martin.sladecek@oracle.com>
date Tue, 27 May 2014 12:39:00 +0200
parents 0867438d36b7
children e081a8869ee8
files modules/base/src/main/java/javafx/collections/transformation/SortedList.java
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/modules/base/src/main/java/javafx/collections/transformation/SortedList.java	Tue May 27 10:17:07 2014 +0200
+++ b/modules/base/src/main/java/javafx/collections/transformation/SortedList.java	Tue May 27 12:39:00 2014 +0200
@@ -64,11 +64,10 @@
 
     /**
      * Creates a new SortedList wrapped around the source list.
-     * The source list will be sorted using the comparator provided. If null is provided, a natural
-     * ordering of the elements is used if possible. Otherwise, the SortedList tries to sort the elements
-     * by their toString().
+     * The source list will be sorted using the comparator provided. If null is provided, the list
+     * stays unordered and is equal to the source list.
      * @param source a list to wrap
-     * @param comparator a comparator to use or null for the unordered List
+     * @param comparator a comparator to use or null for unordered List
      */
     @SuppressWarnings("unchecked")
     public SortedList(@NamedArg("source") ObservableList<? extends E> source, @NamedArg("comparator") Comparator<? super E> comparator) {