Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/AsyncExecTests.java')
-rw-r--r--tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/AsyncExecTests.java16
1 files changed, 5 insertions, 11 deletions
diff --git a/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/AsyncExecTests.java b/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/AsyncExecTests.java
index 023a200c0..4a8b11685 100644
--- a/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/AsyncExecTests.java
+++ b/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/AsyncExecTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2016 IBM Corporation and others.
+ * Copyright (c) 2006, 2018 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -36,17 +36,11 @@ public class AsyncExecTests extends TestCase {
public void testQueueAdd() {
WorkQueue q = new WorkQueue();
assertTrue(q.isEmpty());
- IRunnableWithProgress r = new IRunnableWithProgress() {
- @Override
- public void run(IProgressMonitor monitor) {
- // Nothing to do for now
- }
+ IRunnableWithProgress r = monitor -> {
+ // Nothing to do for now
};
- IRunnableWithProgress r2 = new IRunnableWithProgress() {
- @Override
- public void run(IProgressMonitor monitor) {
- // Nothing to do for now
- }
+ IRunnableWithProgress r2 = monitor -> {
+ // Nothing to do for now
};
// Ensure that adding an element adds it
q.add(r);

Back to the top