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:33:50 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 58e944a4e -> 38eb75ae4


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

Branch: refs/heads/3.0.x-fixes
Commit: 38eb75ae4d17ada77a738ad224af660fc87428eb
Parents: 58e944a
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:33:32 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/38eb75ae/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