[jira] Created: (IO-264) FileUtils.moveFile() JavaDoc should specify FileExistsException thrown

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (IO-264) FileUtils.moveFile() JavaDoc should specify FileExistsException thrown

ASF GitHub Bot (Jira)
FileUtils.moveFile() JavaDoc should specify FileExistsException thrown
----------------------------------------------------------------------

                 Key: IO-264
                 URL: https://issues.apache.org/jira/browse/IO-264
             Project: Commons IO
          Issue Type: Bug
          Components: Utilities
    Affects Versions: 2.0
            Reporter: Maciej Biłas
            Priority: Trivial


FileUtils.moveFile() JavaDoc does specify the behaviour of the method in a case when the destFile exists. It would be helpful to know from the JavaDoc that in such case an exception is thrown as it's not immediately obvious.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (IO-264) FileUtils.moveFile() JavaDoc should specify FileExistsException thrown

ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/IO-264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niall Pemberton resolved IO-264.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1
         Assignee: Niall Pemberton

Thanks, I updated the javadocs for the following methods:

    * moveFile()
    * moveFileToDirectory()
    * moveDirectory()
    * moveToDirectory()
    * moveDirectoryToDirectory()

http://svn.apache.org/viewvc?view=revision&revision=1080825

> FileUtils.moveFile() JavaDoc should specify FileExistsException thrown
> ----------------------------------------------------------------------
>
>                 Key: IO-264
>                 URL: https://issues.apache.org/jira/browse/IO-264
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0
>            Reporter: Maciej Biłas
>            Assignee: Niall Pemberton
>            Priority: Trivial
>             Fix For: 2.1
>
>
> FileUtils.moveFile() JavaDoc does specify the behaviour of the method in a case when the destFile exists. It would be helpful to know from the JavaDoc that in such case an exception is thrown as it's not immediately obvious.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (IO-264) FileUtils.moveFile() JavaDoc should specify FileExistsException thrown

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

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

Maciej Biłas commented on IO-264:
---------------------------------

Thanks!

> FileUtils.moveFile() JavaDoc should specify FileExistsException thrown
> ----------------------------------------------------------------------
>
>                 Key: IO-264
>                 URL: https://issues.apache.org/jira/browse/IO-264
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0
>            Reporter: Maciej Biłas
>            Assignee: Niall Pemberton
>            Priority: Trivial
>             Fix For: 2.1
>
>
> FileUtils.moveFile() JavaDoc does specify the behaviour of the method in a case when the destFile exists. It would be helpful to know from the JavaDoc that in such case an exception is thrown as it's not immediately obvious.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|

[jira] [Closed] (IO-264) FileUtils.moveFile() JavaDoc should specify FileExistsException thrown

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/IO-264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary D. Gregory closed IO-264.
------------------------------


Closing, we released version 2.1.
               

> FileUtils.moveFile() JavaDoc should specify FileExistsException thrown
> ----------------------------------------------------------------------
>
>                 Key: IO-264
>                 URL: https://issues.apache.org/jira/browse/IO-264
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0
>            Reporter: Maciej Biłas
>            Assignee: Niall Pemberton
>            Priority: Trivial
>             Fix For: 2.1
>
>
> FileUtils.moveFile() JavaDoc does specify the behaviour of the method in a case when the destFile exists. It would be helpful to know from the JavaDoc that in such case an exception is thrown as it's not immediately obvious.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira