Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2016-01-25 11:51:23 +0000
committerAlexander Kurtakov2016-01-25 12:43:43 +0000
commit8014b15ab193c12c2430996d749dc1b7e94ed375 (patch)
tree002aefda873ddf500d448227b1532b03266382dc /systemtap/org.eclipse.linuxtools.systemtap.ui.ide.tests
parentbdffc9ce9f73c38f723f9fe780ff053dff1dd9bd (diff)
downloadorg.eclipse.linuxtools-8014b15ab193c12c2430996d749dc1b7e94ed375.tar.gz
org.eclipse.linuxtools-8014b15ab193c12c2430996d749dc1b7e94ed375.tar.xz
org.eclipse.linuxtools-8014b15ab193c12c2430996d749dc1b7e94ed375.zip
Lambdas convert.
Convert to lambdas where feasible and found. Change-Id: I0521c88a41b7a22012cc8e53bc621cc4bc2e8c88 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com> Reviewed-on: https://git.eclipse.org/r/65092 Tested-by: Hudson CI
Diffstat (limited to 'systemtap/org.eclipse.linuxtools.systemtap.ui.ide.tests')
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide.tests/src/org/eclipse/linuxtools/systemtap/ui/ide/test/swtbot/TestCreateSystemtapScript.java13
1 files changed, 5 insertions, 8 deletions
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide.tests/src/org/eclipse/linuxtools/systemtap/ui/ide/test/swtbot/TestCreateSystemtapScript.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide.tests/src/org/eclipse/linuxtools/systemtap/ui/ide/test/swtbot/TestCreateSystemtapScript.java
index cd8ad4f9d8..2f1f2d279d 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide.tests/src/org/eclipse/linuxtools/systemtap/ui/ide/test/swtbot/TestCreateSystemtapScript.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide.tests/src/org/eclipse/linuxtools/systemtap/ui/ide/test/swtbot/TestCreateSystemtapScript.java
@@ -1391,14 +1391,11 @@ public class TestCreateSystemtapScript {
} else {
// The "Add Graph" button is actually a tab that doesn't get activated when clicked.
// Use a background thread to supress the wait for tab activation.
- new Thread(new Runnable() {
- @Override
- public void run() {
- try {
- bot.activeEditor().bot().cTabItem(1).activate();
- } catch (TimeoutException e) {}
- }
- }).start();
+ new Thread(() -> {
+ try {
+ bot.activeEditor().bot().cTabItem(1).activate();
+ } catch (TimeoutException e) {}
+ }).start();
}
}

Back to the top