TCI - Update ConcurrentLinkedSetQueue for internal Java changes
Change-Id: Ifcede3a0211f15c6a791124d6f36d924698ee59d
Signed-off-by: Eugen Neufeld <eneufeld@eclipsesource.com>
diff --git a/bundles/org.eclipse.emf.ecp.view.validation/src/org/eclipse/emf/ecp/view/internal/validation/ConcurrentLinkedSetQueue.java b/bundles/org.eclipse.emf.ecp.view.validation/src/org/eclipse/emf/ecp/view/internal/validation/ConcurrentLinkedSetQueue.java
index 8640136..ddfb4e4 100644
--- a/bundles/org.eclipse.emf.ecp.view.validation/src/org/eclipse/emf/ecp/view/internal/validation/ConcurrentLinkedSetQueue.java
+++ b/bundles/org.eclipse.emf.ecp.view.validation/src/org/eclipse/emf/ecp/view/internal/validation/ConcurrentLinkedSetQueue.java
@@ -38,6 +38,26 @@
private final Set<Object> concurrentSet = Collections.newSetFromMap(new ConcurrentHashMap<Object, Boolean>());
+ @Override
+ public void clear() {
+ super.clear();
+ concurrentSet.clear();
+ }
+
+ @Override
+ public boolean removeAll(Collection<?> c) {
+ final boolean result = super.removeAll(c);
+ concurrentSet.removeAll(c);
+ return result;
+ }
+
+ @Override
+ public boolean retainAll(Collection<?> c) {
+ final boolean result = super.retainAll(c);
+ concurrentSet.retainAll(c);
+ return result;
+ }
+
/**
* Adds the object to the tail of this queue, if not already contained.
*