summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaspar De Groot2010-01-11 02:50:48 (EST)
committerCaspar De Groot2010-01-11 02:50:48 (EST)
commit69ad49101b504d5c64fecd488bbea4f6f7201a8f (patch)
tree01d5a512c99e44a7c48f6edb0392e11779a47a7a
parent108b8e1fb06df8766d59c74884b4dfe6034d2637 (diff)
downloadcdo-69ad49101b504d5c64fecd488bbea4f6f7201a8f.zip
cdo-69ad49101b504d5c64fecd488bbea4f6f7201a8f.tar.gz
cdo-69ad49101b504d5c64fecd488bbea4f6f7201a8f.tar.bz2
[296087] [DB] AbstractMappingStrategy.createClassMapping can be invoked concurrently
https://bugs.eclipse.org/bugs/show_bug.cgi?id=296087
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/AbstractMappingStrategy.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/AbstractMappingStrategy.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/AbstractMappingStrategy.java
index aeae1c7..3516a1a 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/AbstractMappingStrategy.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/AbstractMappingStrategy.java
@@ -56,11 +56,13 @@ import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
+import java.util.concurrent.ConcurrentHashMap;
+import java.util.concurrent.ConcurrentMap;
/**
* This abstract base class implements those methods which are most likely common to most mapping strategies. It can be
* used to derive custom mapping strategy implementation.
- *
+ *
* @author Eike Stepper
* @since 2.0
*/
@@ -81,11 +83,11 @@ public abstract class AbstractMappingStrategy extends Lifecycle implements IMapp
private Map<String, String> properties;
- private Map<EClass, IClassMapping> classMappings;
+ private ConcurrentMap<EClass, IClassMapping> classMappings;
public AbstractMappingStrategy()
{
- classMappings = new HashMap<EClass, IClassMapping>();
+ classMappings = new ConcurrentHashMap<EClass, IClassMapping>();
}
// -- property related methods -----------------------------------------