From ae296b155a06b2de848316eb36c69f7eec320c48 Mon Sep 17 00:00:00 2001 From: Zhe Sun <31067185+ZheSun88@users.noreply.github.com> Date: Thu, 27 Jun 2019 16:31:25 +0300 Subject: Removed ';' in lambdas (#11628) * Removed ';' in lambdas credits to @voltor * Merge branch 'master' into ZheSun88-patch-1 --- documentation/advanced/advanced-dragndrop.asciidoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'documentation') diff --git a/documentation/advanced/advanced-dragndrop.asciidoc b/documentation/advanced/advanced-dragndrop.asciidoc index 7ccd1c7bae..4aaa0586d0 100644 --- a/documentation/advanced/advanced-dragndrop.asciidoc +++ b/documentation/advanced/advanced-dragndrop.asciidoc @@ -51,7 +51,7 @@ The [classname]#DragStartEvent# is fired when the drag has started, and the [cla [source, java] ---- dragSource.addDragStartListener(event -> - Notification.show("Drag event started"); + Notification.show("Drag event started") ); dragSource.addDragEndListener(event -> { if (event.isCanceled()) { @@ -69,11 +69,11 @@ It is possible to transfer any Object as server side data to the drop target if [source, java] ---- dragSource.addDragStartListener(event -> - dragSource.setDragData(myObject); + dragSource.setDragData(myObject) ); dragSource.addDragEndListener(event -> - dragSource.setDragData(null); -}; + dragSource.setDragData(null) +); ---- === CSS Style Rules -- cgit v1.2.3