commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FILEUPLOAD-246) FileUpload should use IOUtils.closeQuietly where relevant
Date Sat, 15 Feb 2014 21:33:20 GMT

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

Sebb resolved FILEUPLOAD-246.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 1.4

URL: http://svn.apache.org/r1568683
Log:
FILEUPLOAD-246 FileUpload should use IOUtils.closeQuietly where relevant

Modified:
    commons/proper/fileupload/trunk/src/changes/changes.xml
    commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/disk/DiskFileItem.java


> FileUpload should use IOUtils.closeQuietly where relevant
> ---------------------------------------------------------
>
>                 Key: FILEUPLOAD-246
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-246
>             Project: Commons FileUpload
>          Issue Type: Bug
>            Reporter: Sebb
>             Fix For: 1.4
>
>
> FileUpload already depends on Common IO, so it makes sense to simplify the code by using
the method IOUtils#closeQuietly instead of code such as
> {code}
> if (out != null) {
>     try {
>         out.close();
>     } catch (IOException e) {
>         // ignore
>     }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message