cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-6284] AbstractResourceInfo should use a weak hash map for storing proxy maps
Date Mon, 09 Mar 2015 17:32:31 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 16e696287 -> 16ab6e950


[CXF-6284] AbstractResourceInfo should use a weak hash map for storing proxy maps


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/16ab6e95
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/16ab6e95
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/16ab6e95

Branch: refs/heads/master
Commit: 16ab6e950544dfb5b1a525b12e6e36582fa978af
Parents: 16e6962
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Mon Mar 9 17:32:11 2015 +0000
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Mon Mar 9 17:32:11 2015 +0000

----------------------------------------------------------------------
 .../main/java/org/apache/cxf/jaxrs/model/AbstractResourceInfo.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/16ab6e95/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/AbstractResourceInfo.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/AbstractResourceInfo.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/AbstractResourceInfo.java
index e8693c8..fb62c19 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/AbstractResourceInfo.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/AbstractResourceInfo.java
@@ -380,7 +380,7 @@ public abstract class AbstractResourceInfo {
                                  V proxy) {
         Map<T, V> proxies = proxyMap.get(serviceClass);
         if (proxies == null) {
-            proxies = new HashMap<T, V>();
+            proxies = Collections.synchronizedMap(new WeakHashMap<T, V>());
             proxyMap.put(serviceClass, proxies);
         }
         if (!proxies.containsKey(f)) {


Mime
View raw message