jdk/src/java.base/share/classes/java/lang/ref/WeakReference.java
changeset 32033 bf24e33c7919
parent 25859 3317bb8137f4
equal deleted inserted replaced
32032:22badc53802f 32033:bf24e33c7919
    61      * Creates a new weak reference that refers to the given object and is
    61      * Creates a new weak reference that refers to the given object and is
    62      * registered with the given queue.
    62      * registered with the given queue.
    63      *
    63      *
    64      * @param referent object the new weak reference will refer to
    64      * @param referent object the new weak reference will refer to
    65      * @param q the queue with which the reference is to be registered,
    65      * @param q the queue with which the reference is to be registered,
    66      *          or <tt>null</tt> if registration is not required
    66      *          or {@code null} if registration is not required
    67      */
    67      */
    68     public WeakReference(T referent, ReferenceQueue<? super T> q) {
    68     public WeakReference(T referent, ReferenceQueue<? super T> q) {
    69         super(referent, q);
    69         super(referent, q);
    70     }
    70     }
    71 
    71