You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by bu...@apache.org on 2017/11/07 22:57:18 UTC
[06/15] hbase git commit: HBASE-19131 (Addendum) Use the emptyList()
to replace EMPTY_LIST
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/33ede551
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/33ede551
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/33ede551
Branch: refs/heads/HBASE-19189
Commit: 33ede55164421b40c0bfe1c9d47c1db6701265c2
Parents: 9ee8e27
Author: Chia-Ping Tsai <ch...@gmail.com>
Authored: Tue Nov 7 04:06:00 2017 +0800
Committer: Chia-Ping Tsai <ch...@gmail.com>
Committed: Tue Nov 7 04:06:00 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/33ede551/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);
}