hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bus...@apache.org
Subject [06/15] hbase git commit: HBASE-19131 (Addendum) Use the emptyList() to replace EMPTY_LIST
Date Tue, 07 Nov 2017 22:57:18 GMT
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 <chia7712@gmail.com>
Authored: Tue Nov 7 04:06:00 2017 +0800
Committer: Chia-Ping Tsai <chia7712@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);
   }


Mime
View raw message