diff options
author | Per-Åke Minborg <minborg@speedment.com> | 2016-10-28 16:01:40 -0700 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2016-11-07 06:56:41 +0000 |
commit | 25eba3c79655287027301b844d74a92812fc741a (patch) | |
tree | 29ced9523bad5c84cdbbec9554e151c53f7e06ac /server/src/main/java/com/vaadin/ui/Panel.java | |
parent | d2e69d55b70e5a1c8396daeb329a0f981017b6de (diff) | |
download | vaadin-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/Panel.java')
-rw-r--r-- | server/src/main/java/com/vaadin/ui/Panel.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/server/src/main/java/com/vaadin/ui/Panel.java b/server/src/main/java/com/vaadin/ui/Panel.java index 95dddb0003..c179df9be2 100644 --- a/server/src/main/java/com/vaadin/ui/Panel.java +++ b/server/src/main/java/com/vaadin/ui/Panel.java @@ -53,11 +53,8 @@ public class Panel extends AbstractSingleComponentContainer */ protected ActionManager actionManager; - private PanelServerRpc rpc = new PanelServerRpc() { - @Override - public void click(MouseEventDetails mouseDetails) { - fireEvent(new ClickEvent(Panel.this, mouseDetails)); - } + private PanelServerRpc rpc = (MouseEventDetails mouseDetails) -> { + fireEvent(new ClickEvent(Panel.this, mouseDetails)); }; /** |