You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/04/06 22:06:41 UTC
[jira] [Commented] (ZOOKEEPER-2747) Fix ZooKeeperAdmin Compilation
Warning
[ https://issues.apache.org/jira/browse/ZOOKEEPER-2747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15959856#comment-15959856 ]
ASF GitHub Bot commented on ZOOKEEPER-2747:
-------------------------------------------
GitHub user afine opened a pull request:
https://github.com/apache/zookeeper/pull/214
ZOOKEEPER-2747: Fix ZooKeeperAdmin Compilation Warning
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/afine/zookeeper ZOOKEEPER-2747
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/zookeeper/pull/214.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 #214
----
commit 471e45069ec4df87fc3b9baf1f1e23671b53809a
Author: Abraham Fine <af...@apache.org>
Date: 2017-04-06T22:04:31Z
ZOOKEEPER-2747: Fix ZooKeeperAdmin Compilation Warning
----
> Fix ZooKeeperAdmin Compilation Warning
> --------------------------------------
>
> Key: ZOOKEEPER-2747
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2747
> Project: ZooKeeper
> Issue Type: Bug
> Affects Versions: 3.5.2
> Reporter: Abraham Fine
> Assignee: Abraham Fine
>
> Currently when compiling ZooKeeper we se a compilation warning:
> {code}
> [javac] /zookeeper/src/java/main/org/apache/zookeeper/admin/ZooKeeperAdmin.java:43: warning: [try] auto-closeable resource ZooKeeperAdmin has a member method close() that could throw InterruptedException
> [javac] public class ZooKeeperAdmin extends ZooKeeper {
> [javac] ^
> [javac] 2 warnings
> {code}
> This is due to the implementation of AutoCloseable in the ZooKeeper superclass. That class has a warning suppression and explanation, we should copy it to the ZooKeeperAdmin class.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)