zookeeper-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nami (Jira)" <j...@apache.org>
Subject [jira] [Comment Edited] (ZOOKEEPER-4037) Closing autoCloseable resource with try-with-resources block
Date Thu, 06 May 2021 04:37:00 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-4037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17339994#comment-17339994
] 

nami edited comment on ZOOKEEPER-4037 at 5/6/21, 4:36 AM:
----------------------------------------------------------

i think your post is very nice and i will waiting your new post. good luck my friend!ax

[https://wminecraft.net/download-better-end-mod/|http://example.com]


was (Author: akai12):
i think your post is very nice and i will waiting your new post. good luck my friend!ax

better end mod

> Closing autoCloseable resource with try-with-resources block
> ------------------------------------------------------------
>
>                 Key: ZOOKEEPER-4037
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4037
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: server
>            Reporter: LiAoNan
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.8.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Using
> {code:java}
>             try (FileInputStream in = new FileInputStream(configFile)) {
>                 ...
>                 configFileStr = path;
>             }
> {code}
> replace
> {code:java}
>             FileInputStream in = new FileInputStream(configFile);
>             try {
>                 ...
>             } finally {
>                 in.close();
>             }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message