[
https://issues.apache.org/jira/browse/ZOOKEEPER-2747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15961962#comment-15961962
]
ASF GitHub Bot commented on ZOOKEEPER-2747:
-------------------------------------------
Github user hanm commented on the issue:
https://github.com/apache/zookeeper/pull/214
lgtm.
> 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)