You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2025/07/01 15:29:01 UTC

(hbase) branch branch-3 updated: HBASE-29233 Addnedum fix site build error

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

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


The following commit(s) were added to refs/heads/branch-3 by this push:
     new c4b975c52ae HBASE-29233 Addnedum fix site build error
c4b975c52ae is described below

commit c4b975c52ae5a8dba003073a56155e6a8d906ca0
Author: Duo Zhang <zh...@apache.org>
AuthorDate: Tue Jul 1 23:24:39 2025 +0800

    HBASE-29233 Addnedum fix site build error
    
    Remove the special 'instanceof' usage which is only supported in newer java
    version
    
    (cherry picked from commit 3bbed010622708c95229687249b88559a281ef9f)
---
 .../org/apache/hadoop/hbase/client/metrics/ScanMetricsRegionInfo.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/metrics/ScanMetricsRegionInfo.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/metrics/ScanMetricsRegionInfo.java
index 72fb0ab418d..58b5b0a80db 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/metrics/ScanMetricsRegionInfo.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/metrics/ScanMetricsRegionInfo.java
@@ -53,9 +53,10 @@ public class ScanMetricsRegionInfo {
 
   @Override
   public boolean equals(Object obj) {
-    if (!(obj instanceof ScanMetricsRegionInfo other)) {
+    if (!(obj instanceof ScanMetricsRegionInfo)) {
       return false;
     }
+    ScanMetricsRegionInfo other = (ScanMetricsRegionInfo) obj;
     return new EqualsBuilder().append(encodedRegionName, other.encodedRegionName)
       .append(serverName, other.serverName).isEquals();
   }