You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Kevin Risden (JIRA)" <ji...@apache.org> on 2018/12/13 20:26:00 UTC

[jira] [Created] (KNOX-1677) Use try-with-resources to ensure that resources are closed

Kevin Risden created KNOX-1677:
----------------------------------

             Summary: Use try-with-resources to ensure that resources are closed
                 Key: KNOX-1677
                 URL: https://issues.apache.org/jira/browse/KNOX-1677
             Project: Apache Knox
          Issue Type: Improvement
            Reporter: Kevin Risden
            Assignee: Kevin Risden
             Fix For: 1.3.0
         Attachments: KNOX-1677.patch

THere are places where we explicitly close() resources that can instead by try-with-resources. This avoids the finally block or in other cases missing the .close on an exception.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)