From fd8696de945b8a3f3fa954ed56b4a48e3060d50a Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Fri, 13 Jan 2017 09:10:21 +0200 Subject: Avoid using Guava API in the documentation (#8231) * Avoid using Guava API in the documentation --- documentation/components/components-grid.asciidoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'documentation/components') 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 people = Lists.newArrayList( +List 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 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()))); -- cgit v1.2.3