Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2010-01-19 13:40:14 -0500
committerrelves2010-01-19 13:40:14 -0500
commit9f5e85fae2a69e141d80416eec9e1967f20bf7c7 (patch)
tree326312902d1c3f6036e4f211ffe60286dbea6f30 /org.eclipse.mylyn.oslc.core
parent2c5efa76fa637fbd3e37be8661cfe330caca543e (diff)
downloadorg.eclipse.mylyn.tasks-9f5e85fae2a69e141d80416eec9e1967f20bf7c7.tar.gz
org.eclipse.mylyn.tasks-9f5e85fae2a69e141d80416eec9e1967f20bf7c7.tar.xz
org.eclipse.mylyn.tasks-9f5e85fae2a69e141d80416eec9e1967f20bf7c7.zip
NEW - bug 300094: [oslc] use CopyOnWriteArraySet in descriptor config
https://bugs.eclipse.org/bugs/show_bug.cgi?id=300094
Diffstat (limited to 'org.eclipse.mylyn.oslc.core')
-rw-r--r--org.eclipse.mylyn.oslc.core/src/org/eclipse/mylyn/internal/oslc/core/OslcServiceDescriptor.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.oslc.core/src/org/eclipse/mylyn/internal/oslc/core/OslcServiceDescriptor.java b/org.eclipse.mylyn.oslc.core/src/org/eclipse/mylyn/internal/oslc/core/OslcServiceDescriptor.java
index 7d31ceee6..a25009299 100644
--- a/org.eclipse.mylyn.oslc.core/src/org/eclipse/mylyn/internal/oslc/core/OslcServiceDescriptor.java
+++ b/org.eclipse.mylyn.oslc.core/src/org/eclipse/mylyn/internal/oslc/core/OslcServiceDescriptor.java
@@ -13,8 +13,8 @@ package org.eclipse.mylyn.internal.oslc.core;
import java.io.Serializable;
import java.util.Collections;
-import java.util.HashSet;
import java.util.Set;
+import java.util.concurrent.CopyOnWriteArraySet;
import org.eclipse.mylyn.internal.oslc.core.cm.Messages;
@@ -23,12 +23,11 @@ import org.eclipse.mylyn.internal.oslc.core.cm.Messages;
* Descriptor document.
*
* @see http://open-services.net/bin/view/Main/CmServiceDescriptionV1
- *
* @author Robert Elves
*/
public class OslcServiceDescriptor implements Serializable {
- private static final long serialVersionUID = -3895335172732891174L;
+ private static final long serialVersionUID = -5981264972265788764L;
private final Set<OslcCreationDialogDescriptor> creationDialogs;
@@ -54,9 +53,9 @@ public class OslcServiceDescriptor implements Serializable {
public OslcServiceDescriptor(String aboutUrl) {
this.aboutUrl = aboutUrl;
- this.creationDialogs = new HashSet<OslcCreationDialogDescriptor>();
- this.serviceFactories = new HashSet<OslcServiceFactory>();
- this.selectionDialogs = new HashSet<OslcSelectionDialogDescriptor>();
+ this.creationDialogs = new CopyOnWriteArraySet<OslcCreationDialogDescriptor>();
+ this.serviceFactories = new CopyOnWriteArraySet<OslcServiceFactory>();
+ this.selectionDialogs = new CopyOnWriteArraySet<OslcSelectionDialogDescriptor>();
}
public void clear() {

Back to the top