Accept subclasses in equals

This commit is contained in:
Frank 2021-08-14 15:43:48 +02:00
parent f28c3e0594
commit 09395921ce

View file

@ -59,7 +59,7 @@ abstract public class DataExchange {
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!(o instanceof AutoSyncID)) return false;
AutoSyncID that = (AutoSyncID) o;
return uniqueID.equals(that.uniqueID) && modID.equals(that.modID);
}