aboutsummaryrefslogtreecommitdiffstats
path: root/liferay-integration
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-10-20 08:59:17 +0200
committerPéter Török <31210544+torok-peter@users.noreply.github.com>2017-10-20 09:59:17 +0300
commit780e9cee6b7e976285402a00ad5b282a8e79619e (patch)
treefd3aec572018a6b0b32d63d0f5b424413d39dfea /liferay-integration
parent70ba487b622ab13aa39f45cb53507065c180dc56 (diff)
downloadvaadin-framework-780e9cee6b7e976285402a00ad5b282a8e79619e.tar.gz
vaadin-framework-780e9cee6b7e976285402a00ad5b282a8e79619e.zip
Simplify lambda expressions (#10198)
* Simplify lambda expressions And remove unneeded 'return' keyword. * Format
Diffstat (limited to 'liferay-integration')
-rw-r--r--liferay-integration/src/main/java/com/vaadin/osgi/liferay/OsgiUIProvider.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/liferay-integration/src/main/java/com/vaadin/osgi/liferay/OsgiUIProvider.java b/liferay-integration/src/main/java/com/vaadin/osgi/liferay/OsgiUIProvider.java
index bdf50aa0d1..ccbb28581f 100644
--- a/liferay-integration/src/main/java/com/vaadin/osgi/liferay/OsgiUIProvider.java
+++ b/liferay-integration/src/main/java/com/vaadin/osgi/liferay/OsgiUIProvider.java
@@ -72,15 +72,11 @@ public class OsgiUIProvider extends UIProvider {
public UI createInstance(UICreateEvent event) {
if (prototype) {
UI ui = serviceObjects.getService();
- ui.addDetachListener(e -> {
- serviceObjects.ungetService(ui);
- });
+ ui.addDetachListener(e -> serviceObjects.ungetService(ui));
return ui;
}
- logService.ifPresent(log -> {
- log.log(LogService.LOG_WARNING,
- "UI services should have a prototype scope! Creating UI instance using the default constructor!");
- });
+ logService.ifPresent(log -> log.log(LogService.LOG_WARNING,
+ "UI services should have a prototype scope! Creating UI instance using the default constructor!"));
return super.createInstance(event);
}