Repository: hbase Updated Branches: refs/heads/branch-2 50f30668b -> 43b4aab64
HBASE-19131 (Addendum) Use the emptyList() to replace EMPTY_LIST Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/43b4aab6 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/43b4aab6 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/43b4aab6 Branch: refs/heads/branch-2 Commit: 43b4aab6485a9cb2c4c2db62d5e5fb533f827f52 Parents: 50f3066 Author: Chia-Ping Tsai <chia7...@gmail.com> Authored: Tue Nov 7 04:06:00 2017 +0800 Committer: Chia-Ping Tsai <chia7...@gmail.com> Committed: Tue Nov 7 04:06:29 2017 +0800 ---------------------------------------------------------------------- .../src/main/java/org/apache/hadoop/hbase/ClusterStatus.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/43b4aab6/hbase-client/src/main/java/org/apache/hadoop/hbase/ClusterStatus.java ---------------------------------------------------------------------- diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/ClusterStatus.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/ClusterStatus.java index 13c5bac..351b0c8 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/ClusterStatus.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/ClusterStatus.java @@ -138,7 +138,7 @@ public class ClusterStatus { */ public List<ServerName> getDeadServerNames() { if (deadServers == null) { - return Collections.EMPTY_LIST; + return Collections.emptyList(); } return Collections.unmodifiableList(deadServers); } @@ -256,7 +256,7 @@ public class ClusterStatus { public Collection<ServerName> getServers() { if (liveServers == null) { - return Collections.EMPTY_LIST; + return Collections.emptyList(); } return Collections.unmodifiableCollection(this.liveServers.keySet()); } @@ -281,7 +281,7 @@ public class ClusterStatus { */ public List<ServerName> getBackupMasters() { if (backupMasters == null) { - return Collections.EMPTY_LIST; + return Collections.emptyList(); } return Collections.unmodifiableList(this.backupMasters); }