portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r392365 - /portals/jetspeed-2/trunk/components/profiler/src/java/org/apache/jetspeed/profiler/impl/JetspeedProfilerImpl.java
Date Fri, 07 Apr 2006 18:59:37 GMT
Author: taylor
Date: Fri Apr  7 11:59:36 2006
New Revision: 392365

URL: http://svn.apache.org/viewcvs?rev=392365&view=rev
Log:
synchronize access to cache
http://issues.apache.org/jira/browse/JS2-522

Modified:
    portals/jetspeed-2/trunk/components/profiler/src/java/org/apache/jetspeed/profiler/impl/JetspeedProfilerImpl.java

Modified: portals/jetspeed-2/trunk/components/profiler/src/java/org/apache/jetspeed/profiler/impl/JetspeedProfilerImpl.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/profiler/src/java/org/apache/jetspeed/profiler/impl/JetspeedProfilerImpl.java?rev=392365&r1=392364&r2=392365&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/profiler/src/java/org/apache/jetspeed/profiler/impl/JetspeedProfilerImpl.java
(original)
+++ portals/jetspeed-2/trunk/components/profiler/src/java/org/apache/jetspeed/profiler/impl/JetspeedProfilerImpl.java
Fri Apr  7 11:59:36 2006
@@ -17,6 +17,7 @@
 
 import java.security.Principal;
 import java.util.Collection;
+import java.util.Collections;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Map;
@@ -73,9 +74,9 @@
     /** The configured default rule for this portal */
     private String defaultRule = DEFAULT_RULE;
 
-    private Map principalRules = new HashMap();
+    private Map principalRules = Collections.synchronizedMap(new HashMap());
 
-    private Map rulesPerPrincipal = new HashMap();
+    private Map rulesPerPrincipal = Collections.synchronizedMap(new HashMap());
 
     private ProfileResolvers resolvers;
     



---------------------------------------------------------------------
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