From 43b4aab6485a9cb2c4c2db62d5e5fb533f827f52 Mon Sep 17 00:00:00 2001 From: Chia-Ping Tsai Date: Tue, 7 Nov 2017 04:06:00 +0800 Subject: [PATCH] HBASE-19131 (Addendum) Use the emptyList() to replace EMPTY_LIST --- .../main/java/org/apache/hadoop/hbase/ClusterStatus.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 13c5bacb747..351b0c8305d 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 getDeadServerNames() { if (deadServers == null) { - return Collections.EMPTY_LIST; + return Collections.emptyList(); } return Collections.unmodifiableList(deadServers); } @@ -256,7 +256,7 @@ public class ClusterStatus { public Collection 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 getBackupMasters() { if (backupMasters == null) { - return Collections.EMPTY_LIST; + return Collections.emptyList(); } return Collections.unmodifiableList(this.backupMasters); }