From c09128f96cf9d6b9603caee39e5ca7598402c446 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Per-=C3=85ke=20Minborg?= Date: Thu, 27 Oct 2016 22:51:48 -0700 Subject: [PATCH] Add braces Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7213 --- .../server/data/datasource/bov/DataSourceBoVTest.java | 8 +++++--- 1 file 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 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; + } } } -- 2.39.5