commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject [2/3] commons-io git commit: IO-506: Deprecate FileSystemUtils class
Date Sat, 30 Sep 2017 13:51:45 GMT
IO-506: Deprecate FileSystemUtils class


Project: http://git-wip-us.apache.org/repos/asf/commons-io/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-io/commit/bfe3c22b
Tree: http://git-wip-us.apache.org/repos/asf/commons-io/tree/bfe3c22b
Diff: http://git-wip-us.apache.org/repos/asf/commons-io/diff/bfe3c22b

Branch: refs/heads/master
Commit: bfe3c22bc3e866fc499433faf57a9239d4f6e1f2
Parents: 72499ca
Author: Benedikt Ritter <britter@apache.org>
Authored: Sat Sep 30 15:49:01 2017 +0200
Committer: Benedikt Ritter <britter@apache.org>
Committed: Sat Sep 30 15:49:01 2017 +0200

----------------------------------------------------------------------
 src/main/java/org/apache/commons/io/FileSystemUtils.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-io/blob/bfe3c22b/src/main/java/org/apache/commons/io/FileSystemUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/io/FileSystemUtils.java b/src/main/java/org/apache/commons/io/FileSystemUtils.java
index 06e90c2..d79130a 100644
--- a/src/main/java/org/apache/commons/io/FileSystemUtils.java
+++ b/src/main/java/org/apache/commons/io/FileSystemUtils.java
@@ -41,7 +41,12 @@ import java.util.StringTokenizer;
  * </ul>
  *
  * @since 1.1
+ * @deprecated As of 2.6 deprecated without replacement. Use equivalent
+ *  methods in {@link java.nio.file.FileStore} instead, e.g.
+ *  <code>Files.getFileStore(Paths.get("/home")).getUsableSpace()</code>
+ *  or iterate over <code>FileSystems.getDefault().getFileStores()</code>
  */
+@Deprecated
 public class FileSystemUtils {
 
     /** Singleton instance, used mainly for testing. */


Mime
View raw message