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 7d8e0bca610 HBASE-29042 Remove the java 16 instanceof usage in 
BulkLoad.java (#6561)
7d8e0bca610 is described below

commit 7d8e0bca610d392e5bfcdf24949f80fa53ae64ba
Author: Duo Zhang <[email protected]>
AuthorDate: Fri Dec 27 16:19:09 2024 +0800

    HBASE-29042 Remove the java 16 instanceof usage in BulkLoad.java (#6561)
    
    Signed-off-by: Nihal Jain <[email protected]>
    (cherry picked from commit c7b5195330fcda03f6a3eb06e660883124a60de3)
---
 .../src/main/java/org/apache/hadoop/hbase/backup/impl/BulkLoad.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/BulkLoad.java 
b/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/BulkLoad.java
index 17eae1371d0..0f1e79c976b 100644
--- 
a/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/BulkLoad.java
+++ 
b/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/BulkLoad.java
@@ -69,9 +69,10 @@ public class BulkLoad {
     if (this == o) {
       return true;
     }
-    if (!(o instanceof BulkLoad that)) {
+    if (!(o instanceof BulkLoad)) {
       return false;
     }
+    BulkLoad that = (BulkLoad) o;
     return new EqualsBuilder().append(tableName, 
that.tableName).append(region, that.region)
       .append(columnFamily, that.columnFamily).append(hfilePath, 
that.hfilePath)
       .append(rowKey, that.rowKey).isEquals();

Reply via email to