diff options
author | Alexander Kurtakov | 2016-01-25 11:51:23 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2016-01-25 12:43:43 +0000 |
commit | 8014b15ab193c12c2430996d749dc1b7e94ed375 (patch) | |
tree | 002aefda873ddf500d448227b1532b03266382dc /systemtap/org.eclipse.linuxtools.systemtap.ui.ide.tests | |
parent | bdffc9ce9f73c38f723f9fe780ff053dff1dd9bd (diff) | |
download | org.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.java | 13 |
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(); } } |