Fix TermedEntityIdValue hashing

This commit is contained in:
Antonin Delpeuch 2018-01-11 11:53:47 +00:00
parent 30ce8680c5
commit 43f0348ee9

View File

@ -1,5 +1,6 @@
package org.openrefine.wikidata.schema.entityvalues;
import org.wikidata.wdtk.datamodel.helpers.Hash;
import org.wikidata.wdtk.datamodel.interfaces.EntityIdValue;
import org.wikidata.wdtk.datamodel.interfaces.ValueVisitor;
@ -71,6 +72,6 @@ public abstract class TermedEntityIdValue implements EntityIdValue {
@Override
public int hashCode() {
return getIri().hashCode();
return Hash.hashCode(this);
}
}