src/share/classes/sun/rmi/transport/WeakRef.java
Print this page
*** 39,49 ****
* object identity of their referents.
*
* @author Ann Wollrath
* @author Peter Jones
*/
! class WeakRef extends WeakReference {
/** value of the referent's "identity" hash code */
private int hashValue;
/** strong reference to the referent, for when this WeakRef is "pinned" */
--- 39,49 ----
* object identity of their referents.
*
* @author Ann Wollrath
* @author Peter Jones
*/
! class WeakRef extends WeakReference<Object> {
/** value of the referent's "identity" hash code */
private int hashValue;
/** strong reference to the referent, for when this WeakRef is "pinned" */
*** 58,68 ****
}
/**
* Create a new WeakRef to the given object, registered with a queue.
*/
! public WeakRef(Object obj, ReferenceQueue q) {
super(obj, q);
setHashValue(obj); // cache object's "identity" hash code
}
/**
--- 58,68 ----
}
/**
* Create a new WeakRef to the given object, registered with a queue.
*/
! public WeakRef(Object obj, ReferenceQueue<Object> q) {
super(obj, q);
setHashValue(obj); // cache object's "identity" hash code
}
/**