openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r643248 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/QueryCompilationCacheValue.java
Date Tue, 01 Apr 2008 03:21:26 GMT
Author: pcl
Date: Mon Mar 31 20:21:23 2008
New Revision: 643248

URL: http://svn.apache.org/viewvc?rev=643248&view=rev
Log:
OPENJPA-544. Take advantage of tiger dependency.

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/QueryCompilationCacheValue.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/QueryCompilationCacheValue.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/QueryCompilationCacheValue.java?rev=643248&r1=643247&r2=643248&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/QueryCompilationCacheValue.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/QueryCompilationCacheValue.java
Mon Mar 31 20:21:23 2008
@@ -24,7 +24,6 @@
 
 import org.apache.openjpa.lib.conf.Configuration;
 import org.apache.openjpa.lib.conf.PluginValue;
-import org.apache.openjpa.lib.util.concurrent.ConcurrentMap;
 import java.util.concurrent.ConcurrentHashMap;
 import org.apache.openjpa.lib.util.ParseException;
 import org.apache.openjpa.util.CacheMap;
@@ -87,8 +86,9 @@
 
         if (map != null && !(map instanceof Hashtable)
             && !(map instanceof CacheMap)
-            && !(map instanceof ConcurrentMap)
-            && !(map.getClass().getName().startsWith("java.util.concurrent")))
+            && !(map instanceof
+                    org.apache.openjpa.lib.util.concurrent.ConcurrentMap)
+            && !(map instanceof java.util.concurrent.ConcurrentMap))
             map = Collections.synchronizedMap(map);
         return map;
 	}



Mime
View raw message