From: Per-Åke Minborg Date: Fri, 28 Oct 2016 05:51:48 +0000 (-0700) Subject: Add braces X-Git-Tag: 8.0.0.alpha6~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c09128f96cf9d6b9603caee39e5ca7598402c446;p=vaadin-framework.git Add braces Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7213 --- 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 personSorts) { Stream 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; + } } }