Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2747

Fix ZooKeeperAdmin Compilation Warning

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.5.2
    • 3.5.4, 3.6.0
    • None
    • None

    Description

      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 InterruptedException
          [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 suppression and explanation, we should copy it to the ZooKeeperAdmin class.

      Attachments

        Issue Links

          Activity

            People

              abrahamfine Abraham Fine
              abrahamfine Abraham Fine
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: