hchar 2005/01/30 02:51:18
Modified: sandbox/yajcache/src/org/apache/jcs/yajcache/lang/ref
KeyedWeakReference.java
Log:
bug fix + generalize + annotate
Revision Changes Path
1.5 +8 -4
jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/lang/ref/KeyedWeakReference.java
Index: KeyedWeakReference.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/lang/ref/KeyedWeakReference.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- KeyedWeakReference.java 29 Jan 2005 12:37:01 -0000 1.4
+++ KeyedWeakReference.java 30 Jan 2005 10:51:18 -0000 1.5
@@ -28,16 +28,20 @@
public class KeyedWeakReference<K,T> extends WeakReference<T>
implements IKey<K>
{
- public final K key;
+ public final @NonNullable K key;
- public KeyedWeakReference(K key, T referrent,
+ public KeyedWeakReference(@NonNullable K key, T referent) {
+ super(referent);
+ this.key = key;
+ }
+ public KeyedWeakReference(@NonNullable K key, T referrent,
ReferenceQueue<? super T> q)
{
- super(referrent);
+ 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]