You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/05/31 22:36:04 UTC
[jira] [Commented] (KARAF-5170) Use try-with-resources
[ https://issues.apache.org/jira/browse/KARAF-5170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16032132#comment-16032132 ]
ASF GitHub Bot commented on KARAF-5170:
---------------------------------------
GitHub user skitt opened a pull request:
https://github.com/apache/karaf/pull/308
KARAF-5170: use try-with-resources
Signed-off-by: Stephen Kitt <sk...@redhat.com>
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/skitt/karaf try-with-resources
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/karaf/pull/308.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #308
----
commit 41c0ea5515af31dfb34a24ef32f8e7dfc7a25976
Author: Stephen Kitt <sk...@redhat.com>
Date: 2017-05-31T22:33:56Z
KARAF-5170: use try-with-resources
Signed-off-by: Stephen Kitt <sk...@redhat.com>
----
> Use try-with-resources
> ----------------------
>
> Key: KARAF-5170
> URL: https://issues.apache.org/jira/browse/KARAF-5170
> Project: Karaf
> Issue Type: Improvement
> Components: karaf-core
> Affects Versions: 4.2.0
> Reporter: Stephen Kitt
> Priority: Trivial
>
> Some closeable resources are initialised and closed using standard try-finally blocks; they could be replaced with try-with-resources.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)