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/01/10 18:19:53 UTC
[commons-vfs] branch master updated: Don't use own deprecated API.
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 4119c28 Don't use own deprecated API.
4119c28 is described below
commit 4119c2898b0a810984b6e18a3f39eab6c9820591
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jan 10 13:19:48 2020 -0500
Don't use own deprecated API.
---
.../main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
index 6f294ac..02021e1 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
@@ -43,7 +43,6 @@ import org.apache.commons.vfs2.FileSelector;
import org.apache.commons.vfs2.FileSystem;
import org.apache.commons.vfs2.FileSystemException;
import org.apache.commons.vfs2.FileType;
-import org.apache.commons.vfs2.FileUtil;
import org.apache.commons.vfs2.NameScope;
import org.apache.commons.vfs2.RandomAccessContent;
import org.apache.commons.vfs2.Selectors;
@@ -296,7 +295,7 @@ public abstract class AbstractFileObject<AFS extends AbstractFileSystem> impleme
// Copy across
try {
if (srcFile.getType().hasContent()) {
- FileUtil.copyContent(srcFile, destFile);
+ FileObjectUtils.writeContent(srcFile, destFile);
} else if (srcFile.getType().hasChildren()) {
destFile.createFolder();
}