src/share/classes/sun/rmi/transport/WeakRef.java
Print this page
@@ -39,11 +39,11 @@
* object identity of their referents.
*
* @author Ann Wollrath
* @author Peter Jones
*/
-class WeakRef extends WeakReference {
+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,11 +58,11 @@
}
/**
* Create a new WeakRef to the given object, registered with a queue.
*/
- public WeakRef(Object obj, ReferenceQueue q) {
+ public WeakRef(Object obj, ReferenceQueue<Object> q) {
super(obj, q);
setHashValue(obj); // cache object's "identity" hash code
}
/**