commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r292652 - /jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/zip/ZipFileObject.java
Date Fri, 30 Sep 2005 07:06:38 GMT
Author: imario
Date: Fri Sep 30 00:06:33 2005
New Revision: 292652

URL: http://svn.apache.org/viewcvs?rev=292652&view=rev
Log:
enh: moved release to close()

Modified:
    jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/zip/ZipFileObject.java

Modified: jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/zip/ZipFileObject.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/zip/ZipFileObject.java?rev=292652&r1=292651&r2=292652&view=diff
==============================================================================
--- jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/zip/ZipFileObject.java
(original)
+++ jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/zip/ZipFileObject.java
Fri Sep 30 00:06:33 2005
@@ -142,12 +142,18 @@
             protected void onClose() throws IOException
             {
                 ZipFileObject.this.close();
-                AbstractFileSystem fs = (AbstractFileSystem) getFileSystem();
-                if (fs.isReleaseable())
-                {
-                    fs.closeCommunicationLink();
-                }
             }
         };
+    }
+
+    public void close() throws FileSystemException
+    {
+        super.close();
+
+        AbstractFileSystem fs = (AbstractFileSystem) getFileSystem();
+        if (fs.isReleaseable())
+        {
+            fs.closeCommunicationLink();
+        }
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message