karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-5170) Use try-with-resources
Date Wed, 31 May 2017 22:36:04 GMT

    [ 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 <skitt@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 <skitt@redhat.com>
Date:   2017-05-31T22:33:56Z

    KARAF-5170: use try-with-resources
    
    Signed-off-by: Stephen Kitt <skitt@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)

Mime
View raw message