From fdd330a116c55a89b1320f1c5e0c7dec242a0ec7 Mon Sep 17 00:00:00 2001 From: "Richard G. Curtis" Date: Mon, 21 Sep 2009 18:51:23 +0000 Subject: [PATCH] OPENJPA-1172 - Committing changes to trunk. Patch submitted by Rick Curtis git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@817370 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/openjpa/jdbc/meta/ClassMapping.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/ClassMapping.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/ClassMapping.java index 9d2e2b65a..484f17da0 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/ClassMapping.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/ClassMapping.java @@ -22,13 +22,12 @@ import java.sql.SQLException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; import java.util.Iterator; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Set; +import java.util.concurrent.ConcurrentHashMap; import org.apache.openjpa.enhance.PersistenceCapable; import org.apache.openjpa.enhance.Reflection; @@ -87,7 +86,7 @@ public class ClassMapping private ClassMapping[] _assignMaps = null; // maps columns to joinables - private final Map _joinables = Collections.synchronizedMap(new HashMap()); + private final Map _joinables = new ConcurrentHashMap(); /** * Constructor. Supply described type and owning repository.