From f7abbea6bef3eb46fa4f3580a7da2a2440463266 Mon Sep 17 00:00:00 2001 From: Pekka Hyvönen Date: Mon, 6 Nov 2017 20:20:58 +0200 Subject: HasItems.setItems(T... items) should allow edits (#10290) * HasItems.setItems(T... items) should allow edits Arrays.asList() creates a immutable Arrays.ArrayList, preventing users from doing dataProvider.getItems() and updating the returned collection. This makes it impossible to keep the same data provider, update it and keep the filters & sorting, and then just call dataProvider.refreshAll() to get changes visible. We should not require users to create a new data provider in this case. This is the same for DataProvider.ofItems(T... items) * fix missing whitespace from test error message --- server/pom.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'server/pom.xml') diff --git a/server/pom.xml b/server/pom.xml index 91df364a5e..c38f528e70 100644 --- a/server/pom.xml +++ b/server/pom.xml @@ -127,7 +127,12 @@ slf4j-log4j12 test - + + org.reflections + reflections + 0.9.11 + test + -- cgit v1.2.3