From issues-return-5567-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Thu May 6 04:37:02 2021 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-he-de.apache.org (mxout1-he-de.apache.org [95.216.194.37]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id 548CD18062C for ; Thu, 6 May 2021 06:37:02 +0200 (CEST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-he-de.apache.org (ASF Mail Server at mxout1-he-de.apache.org) with SMTP id B52E1605DE for ; Thu, 6 May 2021 04:37:01 +0000 (UTC) Received: (qmail 49750 invoked by uid 500); 6 May 2021 04:37:01 -0000 Mailing-List: contact issues-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list issues@zookeeper.apache.org Received: (qmail 49739 invoked by uid 99); 6 May 2021 04:37:01 -0000 Received: from mailrelay1-he-de.apache.org (HELO mailrelay1-he-de.apache.org) (116.203.21.61) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 May 2021 04:37:01 +0000 Received: from jira2-he-de.apache.org (jira2-he-de.apache.org [168.119.33.54]) by mailrelay1-he-de.apache.org (ASF Mail Server at mailrelay1-he-de.apache.org) with ESMTPS id 519A63E8B2 for ; Thu, 6 May 2021 04:37:00 +0000 (UTC) Received: from jira2-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira2-he-de.apache.org (ASF Mail Server at jira2-he-de.apache.org) with ESMTP id 38B3AC80130 for ; Thu, 6 May 2021 04:37:00 +0000 (UTC) Date: Thu, 6 May 2021 04:37:00 +0000 (UTC) From: "nami (Jira)" To: issues@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (ZOOKEEPER-4037) Closing autoCloseable resource with try-with-resources block MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)