diff options
author | Leif Åstrand <legioth@gmail.com> | 2017-01-13 09:10:21 +0200 |
---|---|---|
committer | Pekka Hyvönen <pekka@vaadin.com> | 2017-01-13 09:10:21 +0200 |
commit | fd8696de945b8a3f3fa954ed56b4a48e3060d50a (patch) | |
tree | 4d6a4aa638f7644019fdd426ee15095b3b2fac71 /documentation/components | |
parent | 923b42e5499375333805cdeb851f0048ae5b31e4 (diff) | |
download | vaadin-framework-fd8696de945b8a3f3fa954ed56b4a48e3060d50a.tar.gz vaadin-framework-fd8696de945b8a3f3fa954ed56b4a48e3060d50a.zip |
Avoid using Guava API in the documentation (#8231)
* Avoid using Guava API in the documentation
Diffstat (limited to 'documentation/components')
-rw-r--r-- | documentation/components/components-grid.asciidoc | 3 |
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()))); |