james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Jablow (JIRA)" <j...@apache.org>
Subject [jira] Created: (HUPA-54) DownloadAttachmentServlet should use IOUtils.closeQueitly
Date Mon, 23 Nov 2009 21:05:39 GMT
DownloadAttachmentServlet should use IOUtils.closeQueitly
---------------------------------------------------------

                 Key: HUPA-54
                 URL: https://issues.apache.org/jira/browse/HUPA-54
             Project: JAMES Hupa
          Issue Type: Improvement
          Components: server
    Affects Versions: 0.1
            Reporter: Eric Jablow
            Assignee: Norman Maurer
            Priority: Trivial


DownloadAttachmentServlet contains two blocks of code like:

if (in != null) {
    try {
    in.close()
  } catch(IOException e) {
    // Ignored
  }
}

This project uses Apache Commons IO; it should use IOUtils.closeQuietly(InputStream s) and
the corresponding output stream version.  I have made a small patch.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message