hchar       2005/01/30 02:51:28

  Modified:    sandbox/yajcache/src/org/apache/jcs/yajcache/lang/ref
                        KeyedSoftReference.java
  Log:
  generalize + annotate
  
  Revision  Changes    Path
  1.4       +7 -7      
jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/lang/ref/KeyedSoftReference.java
  
  Index: KeyedSoftReference.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/lang/ref/KeyedSoftReference.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- KeyedSoftReference.java   29 Jan 2005 12:37:01 -0000      1.3
  +++ KeyedSoftReference.java   30 Jan 2005 10:51:28 -0000      1.4
  @@ -18,7 +18,6 @@
   
   import java.lang.ref.ReferenceQueue;
   import java.lang.ref.SoftReference;
  -import org.apache.jcs.yajcache.lang.annotation.*;
   
   import org.apache.jcs.yajcache.lang.annotation.*;
   
  @@ -33,18 +32,19 @@
   {
       private final @NonNullable K key;
       
  -//    KeyedSoftRef(String key, T value) {
  -//   super(value);
  -//        this.key = key;
  -//    }
  -    public KeyedSoftReference(@NonNullable K key, @NonNullable T referrent, 
  +    public KeyedSoftReference(@NonNullable K key, T referent) 
  +    {
  +     super(referent);
  +        this.key = key;
  +    }
  +    public KeyedSoftReference(@NonNullable K key, T referrent, 
               ReferenceQueue<? super T> q) 
       {
           super(referrent, q);
           this.key = key;
       }
       @Implements(IKey.class)
  -    public K getKey() {
  +    public @NonNullable K getKey() {
           return this.key;
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to