ErrorProne: fix sampler/EqualsGetClass
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user