]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add braces
authorPer-Åke Minborg <minborg@speedment.com>
Fri, 28 Oct 2016 05:51:48 +0000 (22:51 -0700)
committerVaadin Code Review <review@vaadin.com>
Wed, 2 Nov 2016 14:18:37 +0000 (14:18 +0000)
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7213

server/src/test/java/com/vaadin/server/data/datasource/bov/DataSourceBoVTest.java

index 1f96bf83a70aa481aded720541c9b5d0b7283565..58f0c3240160d90f467c36cf4a1eead8237b2312 100644 (file)
@@ -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;
+            }
         }
     }