aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/ui/declarative/Design.java
diff options
context:
space:
mode:
authorPer-Åke Minborg <minborg@speedment.com>2016-10-28 16:01:40 -0700
committerVaadin Code Review <review@vaadin.com>2016-11-07 06:56:41 +0000
commit25eba3c79655287027301b844d74a92812fc741a (patch)
tree29ced9523bad5c84cdbbec9554e151c53f7e06ac /server/src/main/java/com/vaadin/ui/declarative/Design.java
parentd2e69d55b70e5a1c8396daeb329a0f981017b6de (diff)
downloadvaadin-framework-25eba3c79655287027301b844d74a92812fc741a.tar.gz
vaadin-framework-25eba3c79655287027301b844d74a92812fc741a.zip
Use lambdas where appropriate
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf722d
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/declarative/Design.java')
-rw-r--r--server/src/main/java/com/vaadin/ui/declarative/Design.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/server/src/main/java/com/vaadin/ui/declarative/Design.java b/server/src/main/java/com/vaadin/ui/declarative/Design.java
index b5b6762f20..0644b27877 100644
--- a/server/src/main/java/com/vaadin/ui/declarative/Design.java
+++ b/server/src/main/java/com/vaadin/ui/declarative/Design.java
@@ -472,11 +472,8 @@ public class Design implements Serializable {
}
// create listener for component creations that binds the created
// components to the componentRoot instance fields
- ComponentCreationListener creationListener = new ComponentCreationListener() {
- @Override
- public void componentCreated(ComponentCreatedEvent event) {
- binder.bindField(event.getComponent(), event.getLocalId());
- }
+ ComponentCreationListener creationListener = (ComponentCreatedEvent event) -> {
+ binder.bindField(event.getComponent(), event.getLocalId());
};
designContext.addComponentCreationListener(creationListener);
// create subtree