aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/data/BinderValidationStatus.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/main/java/com/vaadin/data/BinderValidationStatus.java')
-rw-r--r--server/src/main/java/com/vaadin/data/BinderValidationStatus.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/server/src/main/java/com/vaadin/data/BinderValidationStatus.java b/server/src/main/java/com/vaadin/data/BinderValidationStatus.java
index c95a93f074..f89b743258 100644
--- a/server/src/main/java/com/vaadin/data/BinderValidationStatus.java
+++ b/server/src/main/java/com/vaadin/data/BinderValidationStatus.java
@@ -71,8 +71,8 @@ public class BinderValidationStatus<BEAN> implements Serializable {
public static <BEAN> BinderValidationStatus<BEAN> createUnresolvedStatus(
Binder<BEAN> source) {
return new BinderValidationStatus<>(source,
- source.getBindings().stream()
- .map(b -> BindingValidationStatus.createUnresolvedStatus(b))
+ source.getBindings().stream().map(
+ b -> BindingValidationStatus.createUnresolvedStatus(b))
.collect(Collectors.toList()),
Collections.emptyList());
}
@@ -118,8 +118,9 @@ public class BinderValidationStatus<BEAN> implements Serializable {
public boolean hasErrors() {
return binderStatuses.stream().filter(ValidationResult::isError)
.findAny().isPresent()
- || bindingStatuses.stream().filter(BindingValidationStatus::isError)
- .findAny().isPresent();
+ || bindingStatuses.stream()
+ .filter(BindingValidationStatus::isError).findAny()
+ .isPresent();
}
/**