[errorprone] FileReftableStack: fix EqualsUnsafeCast
See https://errorprone.info/bugpattern/EqualsUnsafeCast Change-Id: I23274c1850061f0574133f52692e125cfa6b92ff
This commit is contained in:
parent
bf92bb9bca
commit
37f60c7984
|
@ -617,6 +617,9 @@ public boolean equals(Object other) {
|
||||||
if (other == null) {
|
if (other == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (!(other instanceof Segment)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
Segment o = (Segment) other;
|
Segment o = (Segment) other;
|
||||||
return o.bytes == bytes && o.log == log && o.start == start
|
return o.bytes == bytes && o.log == log && o.start == start
|
||||||
&& o.end == end;
|
&& o.end == end;
|
||||||
|
|
Loading…
Reference in New Issue