BASE-19074 Miscellaneous Observer cleanups; ADDEDNUM to fix FindBugs

This commit is contained in:
Michael Stack 2017-10-24 22:40:30 -07:00
parent 95528d12f3
commit 43a8ac0015
No known key found for this signature in database
GPG Key ID: 9816C7FC8ACC93D2
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;