aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/main/java/com/vaadin/tests/applicationcontext/UIRunSafelyThread.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/main/java/com/vaadin/tests/applicationcontext/UIRunSafelyThread.java')
-rw-r--r--uitest/src/main/java/com/vaadin/tests/applicationcontext/UIRunSafelyThread.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/applicationcontext/UIRunSafelyThread.java b/uitest/src/main/java/com/vaadin/tests/applicationcontext/UIRunSafelyThread.java
index a7edd2c0d0..1104848373 100644
--- a/uitest/src/main/java/com/vaadin/tests/applicationcontext/UIRunSafelyThread.java
+++ b/uitest/src/main/java/com/vaadin/tests/applicationcontext/UIRunSafelyThread.java
@@ -11,13 +11,7 @@ public abstract class UIRunSafelyThread extends Thread {
@Override
public void run() {
- ui.accessSynchronously(new Runnable() {
-
- @Override
- public void run() {
- runSafely();
- }
- });
+ ui.accessSynchronously(() -> runSafely());
}
protected abstract void runSafely();