Accept subclasses in equals
This commit is contained in:
parent
f28c3e0594
commit
09395921ce
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue