portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vku...@apache.org
Subject svn commit: r773545 - /portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/portal/src/java/org/apache/jetspeed/decoration/caches/HashMapPathResolverCache.java
Date Mon, 11 May 2009 12:47:40 GMT
Author: vkumar
Date: Mon May 11 12:47:40 2009
New Revision: 773545

URL: http://svn.apache.org/viewvc?rev=773545&view=rev
Log:
Making path cache as synchronized for handling concurrency issue
https://issues.apache.org/jira/browse/JS2-1001

Modified:
    portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/portal/src/java/org/apache/jetspeed/decoration/caches/HashMapPathResolverCache.java

Modified: portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/portal/src/java/org/apache/jetspeed/decoration/caches/HashMapPathResolverCache.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/portal/src/java/org/apache/jetspeed/decoration/caches/HashMapPathResolverCache.java?rev=773545&r1=773544&r2=773545&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/portal/src/java/org/apache/jetspeed/decoration/caches/HashMapPathResolverCache.java
(original)
+++ portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/portal/src/java/org/apache/jetspeed/decoration/caches/HashMapPathResolverCache.java
Mon May 11 12:47:40 2009
@@ -16,6 +16,7 @@
  */
 package org.apache.jetspeed.decoration.caches;
 
+import java.util.Collections;
 import java.util.HashMap;
 import java.util.Map;
 
@@ -35,7 +36,7 @@
     
     public HashMapPathResolverCache()
     {
-        this.cache = new HashMap();
+        this.cache = Collections.synchronizedMap(new HashMap());
     }
 
     public void addPath(String key, String path)



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message