BASE-19074 Miscellaneous Observer cleanups; ADDEDNUM to fix FindBugs
This commit is contained in:
parent
95528d12f3
commit
43a8ac0015
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue