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] [Updated] (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:all-tabpanel ]
Kevin Risden updated KNOX-1677:
-------------------------------
Attachment: KNOX-1677.patch
Status: Patch Available (was: In Progress)
> 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)