summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAleksi Hietanen <aleksi@vaadin.com>2017-05-10 15:17:10 +0300
committerTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2017-07-11 10:01:02 +0300
commit25c8d68c819ceabdffc472547e9c86efcbc5867f (patch)
tree50663a8ef26082adcce55b58dd43b6914ce9d6a6 /server
parentdeb3a451fb1d48a050f260806f0bc53a95ca5243 (diff)
downloadvaadin-framework-25c8d68c819ceabdffc472547e9c86efcbc5867f.tar.gz
vaadin-framework-25c8d68c819ceabdffc472547e9c86efcbc5867f.zip
Wrap DataCommunicator#getBackEndSorting in an unmodifiable list
Diffstat (limited to 'server')
-rw-r--r--server/src/main/java/com/vaadin/data/provider/DataCommunicator.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java b/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java
index 88974715cd..7a662e2aac 100644
--- a/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java
+++ b/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java
@@ -18,6 +18,7 @@ package com.vaadin.data.provider;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
+import java.util.Collections;
import java.util.Comparator;
import java.util.HashSet;
import java.util.LinkedHashSet;
@@ -547,11 +548,11 @@ public class DataCommunicator<T> extends AbstractExtension {
/**
* Returns the {@link QuerySortOrder} to use with backend sorting.
*
- * @return list of sort order information to pass to a query
+ * @return an unmodifiable list of sort order information to pass to a query
* @since 8.0.6
*/
public List<QuerySortOrder> getBackEndSorting() {
- return backEndSorting;
+ return Collections.unmodifiableList(backEndSorting);
}
/**