aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/ui/Panel.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/Panel.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/Panel.java')
-rw-r--r--server/src/main/java/com/vaadin/ui/Panel.java7
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));
};
/**