/[classpath]/classpath/java/lang/ref/PhantomReference.java
ViewVC logotype

Diff of /classpath/java/lang/ref/PhantomReference.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mark, Tue Jan 22 22:27:00 2002 UTC revision 1.3.2.1 by tromey, Sat Aug 7 19:32:57 2004 UTC
# Line 1  Line 1 
1  /* java.lang.ref.PhantomReference  /* java.lang.ref.PhantomReference
2     Copyright (C) 1999 Free Software Foundation, Inc.     Copyright (C) 1999, 2004 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 46  package java.lang.ref; Line 46  package java.lang.ref;
46   *   *
47   * @author Jochen Hoenicke   * @author Jochen Hoenicke
48   */   */
49  public class PhantomReference  public class PhantomReference<T>
50    extends Reference    extends Reference<T>
51  {  {
52    /**    /**
53     * Creates a new phantom reference.     * Creates a new phantom reference.
# Line 56  public class PhantomReference Line 56  public class PhantomReference
56     * finalized.  This mustn't be <code>null</code>.     * finalized.  This mustn't be <code>null</code>.
57     * @exception NullPointerException if q is null.     * @exception NullPointerException if q is null.
58     */     */
59    public PhantomReference(Object referent, ReferenceQueue q)    public PhantomReference(T referent, ReferenceQueue<? super T> q)
60    {    {
61      super(referent, q);      super(referent, q);
62    }    }
# Line 66  public class PhantomReference Line 66  public class PhantomReference
66     * @return <code>null</code>, since the refered object may be     * @return <code>null</code>, since the refered object may be
67     * finalized and thus not accessible.       * finalized and thus not accessible.  
68     */     */
69    public Object get()    public T get()
70    {    {
71      return null;      return null;
72    }    }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.3.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26