You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/08/04 13:30:30 UTC
[commons-vfs] branch master updated: VfsComponent now implements
java.io.Closeable.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
The following commit(s) were added to refs/heads/master by this push:
new d6d1835 VfsComponent now implements java.io.Closeable.
d6d1835 is described below
commit d6d1835a0a6eeff5b622f3b26ee4ba4b583b60f8
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Aug 4 09:30:20 2020 -0400
VfsComponent now implements java.io.Closeable.
---
.../src/main/java/org/apache/commons/vfs2/provider/VfsComponent.java | 5 ++++-
src/changes/changes.xml | 3 +++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/VfsComponent.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/VfsComponent.java
index f1dec63..ed6f86b 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/VfsComponent.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/VfsComponent.java
@@ -16,6 +16,8 @@
*/
package org.apache.commons.vfs2.provider;
+import java.io.Closeable;
+
import org.apache.commons.logging.Log;
import org.apache.commons.vfs2.FileSystemException;
@@ -29,7 +31,7 @@ import org.apache.commons.vfs2.FileSystemException;
* <li>{@link TemporaryFileStore}
* </ul>
*/
-public interface VfsComponent {
+public interface VfsComponent extends Closeable {
/**
* Sets the Logger to use for the component.
@@ -55,5 +57,6 @@ public interface VfsComponent {
/**
* Closes the component.
*/
+ @Override
void close();
}
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index cba7b31..5ffadb3 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -60,6 +60,9 @@ The <action> type attribute can be add,update,fix,remove.
Add org.apache.commons.vfs2.provider.sftp.SftpFileSystemConfigBuilder.isDisableDetectExecChannel(FileSystemOptions) and setDisableDetectExecChannel(FileSystemOptions, boolean).
Add org.apache.commons.vfs2.FileSystemConfigBuilder.toBooleanObject(boolean).
</action>
+ <action dev="ggregory" due-to="Gary Gregory" type="update">
+ org.apache.commons.vfs2.provider.VfsComponent now implements java.io.Closeable.
+ </action>
<action issue="VFS-754" dev="ggregory" due-to="Gary Gregory" type="update">
Update Apache Commons Compress from 1.19 to 1.20.
</action>