openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curti...@apache.org
Subject svn commit: r888445 - /openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/ClassMapping.java
Date Tue, 08 Dec 2009 15:25:47 GMT
Author: curtisr7
Date: Tue Dec  8 15:25:46 2009
New Revision: 888445

URL: http://svn.apache.org/viewvc?rev=888445&view=rev
Log:
OPENJPA-1172: Use ConcurrentHashMap instead of synchronized HashMap in ClassMapping.

Modified:
    openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/ClassMapping.java

Modified: openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/ClassMapping.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/ClassMapping.java?rev=888445&r1=888444&r2=888445&view=diff
==============================================================================
--- openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/ClassMapping.java
(original)
+++ openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/ClassMapping.java
Tue Dec  8 15:25:46 2009
@@ -22,13 +22,12 @@
 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;
@@ -88,7 +87,7 @@
     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.



Mime
View raw message