commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From froehl...@apache.org
Subject cvs commit: jakarta-commons-sandbox/simplestore/src/java/org/apache/commons/simplestore SynchronizedStore.java SoftRefMemoryStore.java
Date Sun, 10 Feb 2002 11:32:50 GMT
froehlich    02/02/10 03:32:49

  Modified:    simplestore/src/java/org/apache/commons/simplestore
                        SynchronizedStore.java SoftRefMemoryStore.java
  Log:
  fixed imports
  
  Revision  Changes    Path
  1.7       +1 -6      jakarta-commons-sandbox/simplestore/src/java/org/apache/commons/simplestore/SynchronizedStore.java
  
  Index: SynchronizedStore.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/simplestore/src/java/org/apache/commons/simplestore/SynchronizedStore.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- SynchronizedStore.java	10 Feb 2002 10:00:12 -0000	1.6
  +++ SynchronizedStore.java	10 Feb 2002 11:32:49 -0000	1.7
  @@ -54,17 +54,12 @@
    */
   package org.apache.commons.simplestore;
   
  -import java.io.IOException;
  -import java.util.Collection;
  -import java.util.Map;
  -import java.util.Set;
  -
   /**
    *@author     Juozas Baliuka <a href="mailto:baliuka@mwm.lt">
    *      baliuka@mwm.lt</a>
    *@author     Gerhard Froehlich <a href="mailto:g-froehlich@gmx.de">
    *      g-froehlich@gmx.de</a>
  - *@version    $Id: SynchronizedStore.java,v 1.6 2002/02/10 10:00:12 baliuka Exp $
  + *@version    $Id: SynchronizedStore.java,v 1.7 2002/02/10 11:32:49 froehlich Exp $
    */
   final class SynchronizedStore
            implements Store {
  
  
  
  1.12      +4 -17     jakarta-commons-sandbox/simplestore/src/java/org/apache/commons/simplestore/SoftRefMemoryStore.java
  
  Index: SoftRefMemoryStore.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/simplestore/src/java/org/apache/commons/simplestore/SoftRefMemoryStore.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- SoftRefMemoryStore.java	10 Feb 2002 10:00:12 -0000	1.11
  +++ SoftRefMemoryStore.java	10 Feb 2002 11:32:49 -0000	1.12
  @@ -54,21 +54,16 @@
    */
   package org.apache.commons.simplestore;
   
  -import java.io.IOException;
   import java.lang.ref.ReferenceQueue;
   import java.lang.ref.SoftReference;
  -import java.util.Arrays;
  -import java.util.Collection;
  -import java.util.Enumeration;
   import java.util.Map;
  -import java.util.Set;
   
   /**
    *@author     Juozas Baliuka <a href="mailto:baliuka@mwm.lt">
    *      baliuka@mwm.lt</a>
    *@author     Gerhard Froehlich <a href="mailto:g-froehlich@gmx.de">
    *      g-froehlich@gmx.de</a>
  - *@version    $Id: SoftRefMemoryStore.java,v 1.11 2002/02/10 10:00:12 baliuka Exp $
  + *@version    $Id: SoftRefMemoryStore.java,v 1.12 2002/02/10 11:32:49 froehlich Exp $
    */
   public class SoftRefMemoryStore
            implements Store {
  @@ -79,17 +74,14 @@
       private int m_current = 0;
       private Map m_map;
       private ReferenceQueue m_queue = new ReferenceQueue();
  -   
   
       /**
        * Creates new SoftRefMemoryStore
        *
        *@param  map                Description of Parameter
  -     *@param  swap               Description of Parameter
        *@param  maxStrongRefCount  Description of Parameter
        */
       protected SoftRefMemoryStore(Map map, int maxStrongRefCount) {
  -
           this.m_map = map;
   
           if (maxStrongRefCount < 0) {
  @@ -102,7 +94,7 @@
           }
       }
   
  -    public static Store getInstance(Map map,  int maxStrongRef) {
  +    public static Store getInstance(Map map, int maxStrongRef) {
           return new SynchronizedStore(new SoftRefMemoryStore(map, maxStrongRef));
       }
   
  @@ -120,7 +112,7 @@
           if (ref != null) {
               object = ref.get();
           }
  -        
  +
           addStrongRef(object);
           return object;
       }
  @@ -158,7 +150,6 @@
        *
        *@param  key     the Key Object
        *@param  object  Description of Parameter
  -     *@since
        */
       public void put(Object key, Object object) {
           removeSoftRef();
  @@ -174,9 +165,7 @@
       }
   
       private SoftRef makeValue(Object key, Object value, ReferenceQueue queue) {
  -        
  -            return new SoftRef(key, value, queue);
  -        
  +        return new SoftRef(key, value, queue);
       }
   
       // remove unused keys
  @@ -213,7 +202,5 @@
               this.key = key;
           }
       }
  -
  -   
   }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message