/[classpath]/classpath/gnu/java/net/PlainSocketImpl.java
ViewVC logotype

Diff of /classpath/gnu/java/net/PlainSocketImpl.java

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

revision 1.4 by mkoch, Thu Oct 9 16:04:22 2003 UTC revision 1.5 by mkoch, Mon Oct 20 14:10:07 2003 UTC
# Line 84  public final class PlainSocketImpl exten Line 84  public final class PlainSocketImpl exten
84     *     *
85     * When the socket is closed this is reset to -1.     * When the socket is closed this is reset to -1.
86     */     */
87    protected int native_fd = -1;    int native_fd = -1;
88    
89    /**    /**
90     * A cached copy of the in stream for reading from the socket.     * A cached copy of the in stream for reading from the socket.
# Line 102  public final class PlainSocketImpl exten Line 102  public final class PlainSocketImpl exten
102    public PlainSocketImpl()    public PlainSocketImpl()
103    {    {
104    }    }
105      
106      protected void finalize() throws Throwable
107      {
108        synchronized (this)
109          {
110            if (native_fd != -1)
111              try
112                {
113                  close();
114                }
115              catch (IOException ex)
116                {
117                }
118          }
119        super.finalize();
120      }
121    
122    public int getNativeFD()    public int getNativeFD()
123    {    {

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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