You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/12/13 21:33:00 UTC
[jira] [Commented] (KNOX-1677) Use try-with-resources to ensure
that resources are closed
[ https://issues.apache.org/jira/browse/KNOX-1677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16720626#comment-16720626 ]
ASF subversion and git services commented on KNOX-1677:
-------------------------------------------------------
Commit c00066050bfaa7409f64eb112e8e52f82d66c253 in knox's branch refs/heads/master from [~risdenk]
[ https://git-wip-us.apache.org/repos/asf?p=knox.git;h=c000660 ]
KNOX-1677 - Use try-with-resources to ensure that resources are closed
Signed-off-by: Kevin Risden <kr...@apache.org>
> 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
> Priority: Major
> 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)