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:25:31 UTC
(hbase) branch master 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 master
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/master by this push:
new 3bbed010622 HBASE-29233 Addnedum fix site build error
3bbed010622 is described below
commit 3bbed010622708c95229687249b88559a281ef9f
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
---
.../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();
}