[errorprone] FileReftableStack: fix EqualsUnsafeCast

See https://errorprone.info/bugpattern/EqualsUnsafeCast

Change-Id: I23274c1850061f0574133f52692e125cfa6b92ff
This commit is contained in:
Matthias Sohn 2023-09-22 12:34:07 +02:00
parent bf92bb9bca
commit 37f60c7984
1 changed files with 3 additions and 0 deletions

View File

@ -617,6 +617,9 @@ public boolean equals(Object other) {
if (other == null) {
return false;
}
if (!(other instanceof Segment)) {
return false;
}
Segment o = (Segment) other;
return o.bytes == bytes && o.log == log && o.start == start
&& o.end == end;