ErrorProne: fix sampler/EqualsGetClass

This commit is contained in:
mkpaz 2023-02-09 15:28:24 +04:00
parent b894422c68
commit 69e521737c

@ -16,8 +16,7 @@ public abstract class Event {
@Override
public boolean equals(Object o) {
if (this == o) { return true; }
if (o == null || getClass() != o.getClass()) { return false; }
Event event = (Event) o;
if (!(o instanceof Event event)) { return false; }
return id.equals(event.id);
}