BASE-19074 Miscellaneous Observer cleanups; ADDEDNUM to fix FindBugs
This commit is contained in:
parent
1b49081ed2
commit
962d7e9bf0
|
@ -62,7 +62,7 @@ public class MemStoreSize {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if (obj == null || !(obj instanceof MemStoreSize)) {
|
if (obj == null || getClass() != obj.getClass()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
MemStoreSize other = (MemStoreSize) obj;
|
MemStoreSize other = (MemStoreSize) obj;
|
||||||
|
|
|
@ -82,7 +82,7 @@ public class MemStoreSizing extends MemStoreSize {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if (obj == null || !(obj instanceof MemStoreSizing)) {
|
if (obj == null || (getClass() != obj.getClass())) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
MemStoreSizing other = (MemStoreSizing) obj;
|
MemStoreSizing other = (MemStoreSizing) obj;
|
||||||
|
|
Loading…
Reference in New Issue