zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject zookeeper git commit: ZOOKEEPER-2747: Fix ZooKeeperAdmin Compilation Warning
Date Mon, 17 Apr 2017 23:57:52 GMT
Repository: zookeeper
Updated Branches:
  refs/heads/master 3946f0b1d -> 6e91424b2


ZOOKEEPER-2747: Fix ZooKeeperAdmin Compilation Warning

Author: Abraham Fine <afine@apache.org>

Reviewers: Michael Han <hanm@apache.org>

Closes #214 from afine/ZOOKEEPER-2747


Project: http://git-wip-us.apache.org/repos/asf/zookeeper/repo
Commit: http://git-wip-us.apache.org/repos/asf/zookeeper/commit/6e91424b
Tree: http://git-wip-us.apache.org/repos/asf/zookeeper/tree/6e91424b
Diff: http://git-wip-us.apache.org/repos/asf/zookeeper/diff/6e91424b

Branch: refs/heads/master
Commit: 6e91424b220ccbefc8456e1b8a5e0ba0e5130f9a
Parents: 3946f0b
Author: Abraham Fine <afine@apache.org>
Authored: Mon Apr 17 16:56:21 2017 -0700
Committer: Michael Han <hanm@apache.org>
Committed: Mon Apr 17 16:57:44 2017 -0700

----------------------------------------------------------------------
 src/java/main/org/apache/zookeeper/admin/ZooKeeperAdmin.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zookeeper/blob/6e91424b/src/java/main/org/apache/zookeeper/admin/ZooKeeperAdmin.java
----------------------------------------------------------------------
diff --git a/src/java/main/org/apache/zookeeper/admin/ZooKeeperAdmin.java b/src/java/main/org/apache/zookeeper/admin/ZooKeeperAdmin.java
index 4aad9da..afdb729 100644
--- a/src/java/main/org/apache/zookeeper/admin/ZooKeeperAdmin.java
+++ b/src/java/main/org/apache/zookeeper/admin/ZooKeeperAdmin.java
@@ -47,6 +47,8 @@ import org.slf4j.LoggerFactory;
  *
  * @since 3.5.3
  */
+// See ZooKeeper.java for an explanation of why we need @SuppressWarnings("try")
+@SuppressWarnings("try")
 public class ZooKeeperAdmin extends ZooKeeper {
     private static final Logger LOG = LoggerFactory.getLogger(ZooKeeperAdmin.class);
 


Mime
View raw message