You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by im...@apache.org on 2005/07/06 17:05:21 UTC
svn commit: r209467 -
/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/DelegateFileObject.java
Author: imario
Date: Wed Jul 6 08:05:19 2005
New Revision: 209467
URL: http://svn.apache.org/viewcvs?rev=209467&view=rev
Log:
delegated file not closed
Reported by: Siarhei Baidun
Modified:
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/DelegateFileObject.java
Modified: jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/DelegateFileObject.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/DelegateFileObject.java?rev=209467&r1=209466&r2=209467&view=diff
==============================================================================
--- jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/DelegateFileObject.java (original)
+++ jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/DelegateFileObject.java Wed Jul 6 08:05:19 2005
@@ -1,12 +1,12 @@
/*
* Copyright 2002-2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -321,6 +321,17 @@
if (!ignoreEvent)
{
handleChanged();
+ }
+ }
+
+ /**
+ * Close the delegated file
+ */
+ public void close() throws FileSystemException
+ {
+ if (file != null)
+ {
+ file.close();
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org