2004-07-17 Michael Koch <konqueror@gmx.de>
authorMichael Koch <konqueror@gmx.de>
Sat, 17 Jul 2004 08:48:31 +0000 (08:48 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Sat, 17 Jul 2004 08:48:31 +0000 (08:48 +0000)
* gnu/java/nio/channels/FileChannelImpl.java
(finalize): Added javadoc.

From-SVN: r84858

libjava/ChangeLog
libjava/gnu/java/nio/channels/FileChannelImpl.java

index 2648b5771d9a4da20a0537e441e67cd34f3bd432..e9a2a50cdce56cad17776ff7206f1d938fed4f63 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-17  Michael Koch  <konqueror@gmx.de>
+
+       * gnu/java/nio/channels/FileChannelImpl.java
+       (finalize): Added javadoc.
+
 2004-07-17  Guilhem Lavaux <guilhem@kaffe.org>
 
        * java/text/CollationElementIterator.java
index f4686b26d4fcac8a3d8abe6812ad719f45014f2b..8b3d0fc86b32145b1b06468d116f6894cdffe473 100644 (file)
@@ -115,11 +115,6 @@ public final class FileChannelImpl extends FileChannel
     this.mode = mode;
   }
 
-  protected void finalize() throws Throwable
-  {
-    close();
-  }
-
   public static FileChannelImpl in;
   public static FileChannelImpl out;
   public static FileChannelImpl err;
@@ -137,6 +132,14 @@ public final class FileChannelImpl extends FileChannel
     
   protected native void implCloseChannel() throws IOException;
 
+  /**
+   * Makes sure the Channel is properly closed.
+   */
+  protected void finalize() throws IOException
+  {
+    this.close();
+  }
+
   public int read (ByteBuffer dst) throws IOException
   {
     int result;