commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (IO-157) [FileUtils] Return target File from copyFileToDirectory()
Date Sun, 07 Mar 2010 11:15:27 GMT

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

Niall Pemberton edited comment on IO-157 at 3/7/10 11:13 AM:
-------------------------------------------------------------

I also don't see how changing a return type from "void" to return something is going to ever
break compatibility for someone. However nothing has changed since Stephens comment - we were
already on Java 1.5 then and I don't see how upgrading to Java 1.5 means binary incompatibility
is no longer a problem?

      was (Author: niallp):
    I also don't see how changing a return type from "void" to return something is going to
ever break compatibility for someone. However nothing has changed since Stephens comment -
we were already on Java 1.5 then and I don't see how upgrading to Java 1.5 makes any difference
to this.
  
> [FileUtils] Return target File from copyFileToDirectory()
> ---------------------------------------------------------
>
>                 Key: IO-157
>                 URL: https://issues.apache.org/jira/browse/IO-157
>             Project: Commons IO
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 1.4
>            Reporter: Kenny MacLeod
>            Assignee: Niall Pemberton
>            Priority: Minor
>             Fix For: 2.0
>
>
> It would be useful if the FileUtils.copyFileToDirectory() method returned the target
file to which it does the copy.  Currently, it creates the target File object, passes it to
copyFile(), and discards the reference.  This could just be returned from the method instead.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message