Author: ggregory
Date: Fri May 6 23:23:34 2016
New Revision: 1742670
URL: http://svn.apache.org/viewvc?rev=1742670&view=rev
Log:
[IO-506] Deprecate methods FileSystemUtils.freeSpaceKb().
Modified:
commons/proper/io/trunk/src/changes/changes.xml
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileSystemUtils.java
Modified: commons/proper/io/trunk/src/changes/changes.xml
URL:
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/changes/changes.xml?rev=1742670&r1=1742669&r2=1742670&view=diff
==============================================================================
--- commons/proper/io/trunk/src/changes/changes.xml (original)
+++ commons/proper/io/trunk/src/changes/changes.xml Fri May 6 23:23:34 2016
@@ -53,6 +53,9 @@ The <action> type attribute can be add,u
<action issue="IO-503" dev="ggregory" type="fix">
Update platform requirement to Java 7.
</action>
+ <action issue="IO-506" dev="ggregory" type="update" due-to="Christian
Schulte">
+ Deprecate methods FileSystemUtils.freeSpaceKb().
+ </action>
</release>
<release version="2.5" date="2016-04-22" description="New features and bug
fixes.">
<action issue="IO-492" dev="ggregory" type="fix" due-to="Santiago
Castro">
Modified:
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileSystemUtils.java
URL:
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileSystemUtils.java?rev=1742670&r1=1742669&r2=1742670&view=diff
==============================================================================
---
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileSystemUtils.java
(original)
+++
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileSystemUtils.java
Fri May 6 23:23:34 2016
@@ -168,7 +168,9 @@ public class FileSystemUtils {
* @throws IllegalStateException if an error occurred in initialisation
* @throws IOException if an error occurs when finding the free space
* @since 1.2, enhanced OS support in 1.3
+ * @deprecated As of 2.6 removed without replacement. Please use {@link
java.nio.file.FileStore#getUsableSpace()}.
*/
+ @Deprecated
public static long freeSpaceKb(final String path) throws IOException {
return freeSpaceKb(path, -1);
}
@@ -197,7 +199,9 @@ public class FileSystemUtils {
* @throws IllegalStateException if an error occurred in initialisation
* @throws IOException if an error occurs when finding the free space
* @since 2.0
+ * @deprecated As of 2.6 removed without replacement. Please use {@link
java.nio.file.FileStore#getUsableSpace()}.
*/
+ @Deprecated
public static long freeSpaceKb(final String path, final long timeout)
throws IOException {
return INSTANCE.freeSpaceOS(path, OS, true, timeout);
}
@@ -213,7 +217,9 @@ public class FileSystemUtils {
* @throws IllegalStateException if an error occurred in initialisation
* @throws IOException if an error occurs when finding the free space
* @since 2.0
+ * @deprecated As of 2.6 removed without replacement. Please use {@link
java.nio.file.FileStore#getUsableSpace()}.
*/
+ @Deprecated
public static long freeSpaceKb() throws IOException {
return freeSpaceKb(-1);
}
@@ -231,7 +237,9 @@ public class FileSystemUtils {
* @throws IllegalStateException if an error occurred in initialisation
* @throws IOException if an error occurs when finding the free space
* @since 2.0
+ * @deprecated As of 2.6 removed without replacement. Please use {@link
java.nio.file.FileStore#getUsableSpace()}.
*/
+ @Deprecated
public static long freeSpaceKb(final long timeout) throws IOException {
return freeSpaceKb(new File(".").getAbsolutePath(), timeout);
}