SF.net SVN: stripes:[1515] branches/1.5.x/stripes/src/net/sourceforge/ stripes/controller/HttpCacheInterceptor.java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

SF.net SVN: stripes:[1515] branches/1.5.x/stripes/src/net/sourceforge/ stripes/controller/HttpCacheInterceptor.java

fdaoud
Revision: 1515
          http://stripes.svn.sourceforge.net/stripes/?rev=1515&view=rev
Author:   fdaoud
Date:     2012-11-14 13:23:23 +0000 (Wed, 14 Nov 2012)
Log Message:
-----------
Fix for STS-891: Cache in HttpCacheInterceptor needs to be concurrent

Modified Paths:
--------------
    branches/1.5.x/stripes/src/net/sourceforge/stripes/controller/HttpCacheInterceptor.java

Modified: branches/1.5.x/stripes/src/net/sourceforge/stripes/controller/HttpCacheInterceptor.java
===================================================================
--- branches/1.5.x/stripes/src/net/sourceforge/stripes/controller/HttpCacheInterceptor.java 2012-05-18 05:13:06 UTC (rev 1514)
+++ branches/1.5.x/stripes/src/net/sourceforge/stripes/controller/HttpCacheInterceptor.java 2012-11-14 13:23:23 UTC (rev 1515)
@@ -15,7 +15,7 @@
 package net.sourceforge.stripes.controller;
 
 import java.lang.reflect.Method;
-import java.util.HashMap;
+import java.util.concurrent.ConcurrentHashMap;
 import java.util.Map;
 
 import javax.servlet.http.HttpServletResponse;
@@ -66,7 +66,7 @@
 
     private static final Log logger = Log.getInstance(HttpCacheInterceptor.class);
 
-    private Map<CacheKey, HttpCache> cache = new HashMap<CacheKey, HttpCache>(128);
+    private Map<CacheKey, HttpCache> cache = new ConcurrentHashMap<CacheKey, HttpCache>(128);
 
     public Resolution intercept(ExecutionContext ctx) throws Exception {
         final ActionBean actionBean = ctx.getActionBean();

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Stripes-development mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-development