diff options
author | Per-Åke Minborg <minborg@speedment.com> | 2016-10-27 22:51:48 -0700 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2016-11-02 14:18:37 +0000 |
commit | c09128f96cf9d6b9603caee39e5ca7598402c446 (patch) | |
tree | 84e7ba289c688866c859ab500b0fca8d4f35c7d6 | |
parent | 7e0e21c85502244173dc4362b247f0112c0585da (diff) | |
download | vaadin-framework-c09128f96cf9d6b9603caee39e5ca7598402c446.tar.gz vaadin-framework-c09128f96cf9d6b9603caee39e5ca7598402c446.zip |
Add braces
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7213
-rw-r--r-- | server/src/test/java/com/vaadin/server/data/datasource/bov/DataSourceBoVTest.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/server/src/test/java/com/vaadin/server/data/datasource/bov/DataSourceBoVTest.java b/server/src/test/java/com/vaadin/server/data/datasource/bov/DataSourceBoVTest.java index 1f96bf83a7..58f0c32401 100644 --- a/server/src/test/java/com/vaadin/server/data/datasource/bov/DataSourceBoVTest.java +++ b/server/src/test/java/com/vaadin/server/data/datasource/bov/DataSourceBoVTest.java @@ -57,10 +57,11 @@ public class DataSourceBoVTest { Collection<PersonSort> personSorts) { Stream<Person> personStream = Arrays.stream(persons).skip(offset) .limit(limit); - if (personSorts != null) + if (personSorts != null) { for (PersonSort personSort : personSorts) { personStream = personStream.sorted(personSort); } + } return personStream.collect(Collectors.toList()); } @@ -85,10 +86,11 @@ public class DataSourceBoVTest { throw new IllegalArgumentException( "wrong field name " + propertyName); } - if (descending) + if (descending) { return (person1, person2) -> result.compare(person2, person1); - else + } else { return result; + } } } |