From d0435d5f02f93e3f5123ae54216d0062054cbe90 Mon Sep 17 00:00:00 2001 From: Pekka Hyvönen Date: Tue, 13 Sep 2016 15:44:40 +0300 Subject: Fix invalid javadoc in ListDataSource Change-Id: I71e808554d10657ead61271c1c5cc76981214ee3 --- .../main/java/com/vaadin/server/data/ListDataSource.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'server/src/main/java/com') diff --git a/server/src/main/java/com/vaadin/server/data/ListDataSource.java b/server/src/main/java/com/vaadin/server/data/ListDataSource.java index f3ecc771ec..ecac378182 100644 --- a/server/src/main/java/com/vaadin/server/data/ListDataSource.java +++ b/server/src/main/java/com/vaadin/server/data/ListDataSource.java @@ -67,7 +67,10 @@ public class ListDataSource implements DataSource { } /** - * 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. + *

+ * NOTE: 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 implements DataSource { } /** - * 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. + *

+ * NOTE: this data source is not modified in any way. + *

+ * This method is a short-hand for + * {@code sortingBy(Comparator.comparing(sortOrder))}. * * @param sortOrder * function to sort by -- cgit v1.2.3