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:56:24 GMT
Repository: zookeeper
Updated Branches:
  refs/heads/branch-3.5 d34a94963 -> 48e090143


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/48e09014
Tree: http://git-wip-us.apache.org/repos/asf/zookeeper/tree/48e09014
Diff: http://git-wip-us.apache.org/repos/asf/zookeeper/diff/48e09014

Branch: refs/heads/branch-3.5
Commit: 48e090143f6661c4669e305e865c0794116edf59
Parents: d34a949
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:56:21 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/48e09014/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 a584132..da0b38b 100644
--- a/src/java/main/org/apache/zookeeper/admin/ZooKeeperAdmin.java
+++ b/src/java/main/org/apache/zookeeper/admin/ZooKeeperAdmin.java
@@ -40,6 +40,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