aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/main/java/com/vaadin/tests/themes/LegacyComponentThemeChange.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/main/java/com/vaadin/tests/themes/LegacyComponentThemeChange.java')
-rw-r--r--uitest/src/main/java/com/vaadin/tests/themes/LegacyComponentThemeChange.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/themes/LegacyComponentThemeChange.java b/uitest/src/main/java/com/vaadin/tests/themes/LegacyComponentThemeChange.java
index d289787adf..bf0903b67b 100644
--- a/uitest/src/main/java/com/vaadin/tests/themes/LegacyComponentThemeChange.java
+++ b/uitest/src/main/java/com/vaadin/tests/themes/LegacyComponentThemeChange.java
@@ -23,8 +23,6 @@ import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUIWithLog;
import com.vaadin.tests.util.PersonContainer;
import com.vaadin.ui.Button;
-import com.vaadin.ui.Button.ClickEvent;
-import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.Embedded;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.MenuBar;
@@ -44,13 +42,7 @@ public class LegacyComponentThemeChange extends AbstractTestUIWithLog {
for (final String theme : new String[] { "reindeer", "runo" }) {
Button b = new Button(theme);
b.setId(theme + "");
- b.addClickListener(new ClickListener() {
-
- @Override
- public void buttonClick(ClickEvent event) {
- getUI().setTheme(theme);
- }
- });
+ b.addClickListener(event -> getUI().setTheme(theme));
hl.addComponent(b);
}
vl.addComponent(hl);