This is an automated email from the ASF dual-hosted git repository.

reidchan pushed a commit to branch branch-1.4
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-1.4 by this push:
     new 60990b9  HBASE-24032 [Addendum] use equals instead of ==
60990b9 is described below

commit 60990b9c8e2a303b05aa403da42fe98927c521a2
Author: Reid Chan <reidc...@apache.org>
AuthorDate: Tue Mar 24 14:57:58 2020 +0800

    HBASE-24032 [Addendum] use equals instead of ==
---
 .../main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminEndpoint.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminEndpoint.java
 
b/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminEndpoint.java
index 5bbc40e..3e7a0eb 100644
--- 
a/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminEndpoint.java
+++ 
b/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminEndpoint.java
@@ -473,7 +473,7 @@ public class RSGroupAdminEndpoint extends 
RSGroupAdminService
       groupName = RSGroupInfo.DEFAULT_GROUP;
     }
 
-    if (groupName == RSGroupInfo.DEFAULT_GROUP) {
+    if (groupName.equals(RSGroupInfo.DEFAULT_GROUP)) {
       TableName tableName = desc.getTableName();
       groupName = script.getRSGroup(
           tableName.getNamespaceAsString(),

Reply via email to