zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abraham Fine (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ZOOKEEPER-2747) ZooKeeperAdmin Compilation Warning
Date Thu, 06 Apr 2017 22:02:41 GMT
Abraham Fine created ZOOKEEPER-2747:

             Summary: ZooKeeperAdmin Compilation Warning
                 Key: ZOOKEEPER-2747
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2747
             Project: ZooKeeper
          Issue Type: Bug
            Reporter: Abraham Fine
            Assignee: Abraham Fine

Currently when compiling ZooKeeper we se a compilation warning:
    [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
    [javac] public class ZooKeeperAdmin extends ZooKeeper {
    [javac]        ^
    [javac] 2 warnings

This is due to the implementation of AutoCloseable in the ZooKeeper superclass. That class
has a warning supression and explanation, we should copy it to the ZooKeeperAdmin class.

This message was sent by Atlassian JIRA

View raw message