User: binaryfeed
Date: 02/03/06 20:19:39
Modified: src/main/org/jboss/util Tag: Branch_2_4
TimedCachePolicy.java
Log:
Fixed threadSafe flag usage!
Revision Changes Path
No revision
No revision
1.1.6.1 +3 -3 jboss/src/main/org/jboss/util/Attic/TimedCachePolicy.java
Index: TimedCachePolicy.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/util/Attic/TimedCachePolicy.java,v
retrieving revision 1.1
retrieving revision 1.1.6.1
diff -u -r1.1 -r1.1.6.1
--- TimedCachePolicy.java 7 Feb 2001 07:00:44 -0000 1.1
+++ TimedCachePolicy.java 7 Mar 2002 04:19:38 -0000 1.1.6.1
@@ -23,7 +23,7 @@
until they are accessed.
@author [EMAIL PROTECTED]
-@version $Revision: 1.1 $
+@version $Revision: 1.1.6.1 $
*/
public class TimedCachePolicy extends TimerTask implements CachePolicy
{
@@ -108,9 +108,9 @@
public void init()
{
if( threadSafe )
- entryMap = new HashMap();
- else
entryMap = Collections.synchronizedMap(new HashMap());
+ else
+ entryMap = new HashMap();
now = System.currentTimeMillis();
}
/** Schedules this with the class resolutionTimer Timer object for
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development