You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2014/02/15 22:33:20 UTC
[jira] [Resolved] (FILEUPLOAD-246) FileUpload should use
IOUtils.closeQuietly where relevant
[ 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)