1. opensymphony
  2. oscache

Commits

ltor...@81dbac14-341a-0410-aa85-cbcd92e6f43e  committed 9eb1e99

Issue number: Code clean up after CACHE-226, maybe CACHE-152 is fixed with this also
Obtained from: Lars Torunski

  • Participants
  • Parent commits 69cc7b7
  • Branches default

Comments (0)

Files changed (2)

File src/java/com/opensymphony/oscache/base/algorithm/FIFOCache.java

View file
 	/**
      * A queue containing all cache keys
      */
-    private Collection list;
+    private Collection list = new LinkedHashSet();
 
     /**
      * Constructs a FIFO Cache.
      */
     public FIFOCache() {
         super();
-        list = new LinkedHashSet();
     }
 
     /**

File src/java/com/opensymphony/oscache/base/algorithm/LRUCache.java

View file
     /**
      * Cache queue containing all cache keys.
      */
-    private Collection list;
+    private Collection list = new LinkedHashSet();
 
     /**
      * A flag indicating whether there is a removal operation in progress.
      */
     public LRUCache() {
         super();
-        list = new LinkedHashSet();
     }
 
     /**