hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: BASE-19074 Miscellaneous Observer cleanups; ADDEDNUM to fix FindBugs
Date Wed, 25 Oct 2017 05:41:13 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 95528d12f -> 43a8ac001


BASE-19074 Miscellaneous Observer cleanups; ADDEDNUM to fix FindBugs


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/43a8ac00
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/43a8ac00
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/43a8ac00

Branch: refs/heads/master
Commit: 43a8ac00158e92c3015af7753edd8e835dc6054b
Parents: 95528d1
Author: Michael Stack <stack@apache.org>
Authored: Tue Oct 24 22:40:30 2017 -0700
Committer: Michael Stack <stack@apache.org>
Committed: Tue Oct 24 22:41:04 2017 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/regionserver/MemStoreSize.java    | 2 +-
 .../java/org/apache/hadoop/hbase/regionserver/MemStoreSizing.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/43a8ac00/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreSize.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreSize.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreSize.java
index cf2ef6f..557a61a 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreSize.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreSize.java
@@ -62,7 +62,7 @@ public class MemStoreSize {
 
   @Override
   public boolean equals(Object obj) {
-    if (obj == null || !(obj instanceof MemStoreSize)) {
+    if (obj == null || getClass() != obj.getClass()) {
       return false;
     }
     MemStoreSize other = (MemStoreSize) obj;

http://git-wip-us.apache.org/repos/asf/hbase/blob/43a8ac00/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreSizing.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreSizing.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreSizing.java
index fade622..b13201d 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreSizing.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreSizing.java
@@ -82,7 +82,7 @@ public class MemStoreSizing extends MemStoreSize {
 
   @Override
   public boolean equals(Object obj) {
-    if (obj == null || !(obj instanceof MemStoreSizing)) {
+    if (obj == null || (getClass() != obj.getClass())) {
       return false;
     }
     MemStoreSizing other = (MemStoreSizing) obj;


Mime
View raw message