Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1B9F310D58 for ; Wed, 3 Dec 2014 16:43:14 +0000 (UTC) Received: (qmail 78826 invoked by uid 500); 3 Dec 2014 16:43:12 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 78595 invoked by uid 500); 3 Dec 2014 16:43:12 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 78301 invoked by uid 99); 3 Dec 2014 16:43:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Dec 2014 16:43:12 +0000 Date: Wed, 3 Dec 2014 16:43:12 +0000 (UTC) From: "Gary Gregory (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IO-463) FileSystemUtils#freeSpace can be simplified by using new Java 6 File methods MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)