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:35:20 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes 33b13b95e -> 85f9d3662


[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/85f9d366
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/85f9d366
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/85f9d366

Branch: refs/heads/2.7.x-fixes
Commit: 85f9d366290aa9a80a784ca04bf4baacc92188ea
Parents: 33b13b9
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:35:02 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/85f9d366/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 fe6f5ac..f08991c 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
@@ -309,7 +309,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