commons-issues mailing list archives

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

             Summary: 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


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