]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix invalid javadoc in ListDataSource
authorPekka Hyvönen <pekka@vaadin.com>
Tue, 13 Sep 2016 12:44:40 +0000 (15:44 +0300)
committerVaadin Code Review <review@vaadin.com>
Tue, 13 Sep 2016 13:17:04 +0000 (13:17 +0000)
Change-Id: I71e808554d10657ead61271c1c5cc76981214ee3

server/src/main/java/com/vaadin/server/data/ListDataSource.java

index f3ecc771ec3c0946ea3c7c7f05a01e8e2084f4a5..ecac378182de0cb8de896b9a9b31091f57431d0e 100644 (file)
@@ -67,7 +67,10 @@ public class ListDataSource<T> implements DataSource<T> {
     }
 
     /**
-     * Sets a default sorting order to the data source.
+     * Creates a new list data source based on this list data source with the
+     * given sort order.
+     * <p>
+     * <b>NOTE</b>: this data source is not modified in any way.
      *
      * @param sortOrder
      *            a {@link Comparator} providing the needed sorting order
@@ -78,8 +81,13 @@ public class ListDataSource<T> implements DataSource<T> {
     }
 
     /**
-     * Sets a default sorting order to the data source. This method is a
-     * short-hand for {@code sortingBy(Comparator.comparing(sortOrder))}.
+     * Creates a new list data source based on this list data source with the
+     * given sort order.
+     * <p>
+     * <b>NOTE</b>: this data source is not modified in any way.
+     * <p>
+     * This method is a short-hand for
+     * {@code sortingBy(Comparator.comparing(sortOrder))}.
      *
      * @param sortOrder
      *            function to sort by