summaryrefslogtreecommitdiffstats
path: root/documentation/components
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/components')
-rw-r--r--documentation/components/components-grid.asciidoc3
1 files changed, 2 insertions, 1 deletions
diff --git a/documentation/components/components-grid.asciidoc b/documentation/components/components-grid.asciidoc
index 085a7191f3..67923952e3 100644
--- a/documentation/components/components-grid.asciidoc
+++ b/documentation/components/components-grid.asciidoc
@@ -54,7 +54,7 @@ For example, if you have a list of beans, you show them in a [classname]#Grid# a
[source, java]
----
// Have some data
-List<Person> people = Lists.newArrayList(
+List<Person> people = Arrays.asList(
new Person("Nicolaus Copernicus", 1543),
new Person("Galileo Galilei", 1564),
new Person("Johannes Kepler", 1571));
@@ -630,6 +630,7 @@ for (Column<?> col: grid.getColumns()) {
// Filter the list of items
List<String> filteredList =
+ // XXX shouldn't use Lists here since it's from Guava instead of the vanilla JRE. Revise when updating this code example for the new filtering API!
Lists.newArrayList(personList.filter(persons,
Predicates.containsPattern(event.getValue())));