[errorprone] Fix EqualsGetClass

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

Change-Id: Ida19a7e60656f87518e5ae2ef5eae511edb5b837
This commit is contained in:
Matthias Sohn 2023-09-22 15:00:47 +02:00
parent 8c42901b54
commit 049782743e
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ public boolean equals(Object obj) {
if (this == obj) { if (this == obj) {
return true; return true;
} }
if (obj == null || getClass() != obj.getClass()) { if (!(obj instanceof LfsPointer)) {
return false; return false;
} }
LfsPointer other = (LfsPointer) obj; LfsPointer other = (LfsPointer) obj;