commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IO-463) FileSystemUtils#freeSpace can be simplified by using new Java 6 File methods
Date Wed, 03 Dec 2014 16:43:12 GMT

    [ https://issues.apache.org/jira/browse/IO-463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14233176#comment-14233176
] 

Gary Gregory commented on IO-463:
---------------------------------

A conservative approach would be to keep {{freeSpace}} as is (and I am playing a bit of the
devil's advocate here.) and do what I suggested in my previous comment.

If we call the next version 3.0, then we can change the behavior and do the full clean up.
Should we be me more conservative in a minor release? Do we want to just call the next version
3.0 and see what other Java 6 clean ups are available? Or, update to Java 7 for a 3.0 and
go for more cleanups?

> FileSystemUtils#freeSpace can be simplified by using new Java 6 File methods
> ----------------------------------------------------------------------------
>
>                 Key: IO-463
>                 URL: https://issues.apache.org/jira/browse/IO-463
>             Project: Commons IO
>          Issue Type: Improvement
>            Reporter: Sebb
>
> Commons IO now requires Java 1.6, which has some useful new File methods:
> File.getFreeSpace() / getUsableSpace()
> These could be used to radically simplify (and speed up) the FileSystemUtils freeSpace
methods, as well as making it OS-independent.
> The methods should be deprecated in favour of directly calling the File methods directly.
Perhaps even deprecate the entire class?  - it only contains the freeSpace methods currently.
> Note: a lot of the tests will becorme redundant or need reworking.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message