StubParentStrategy: equals() performance

DomStub#hashCode: add index, custom
This commit is contained in:
Yann Cébron
2014-11-12 10:23:11 +01:00
parent 73e7703db2
commit 8a840f255b
@@ -152,6 +152,8 @@ public abstract class DomStub extends ObjectStubBase<DomStub> {
public int hashCode() {
int result = myLocalName.hashCode();
result = 31 * result + myNamespace.hashCode();
result = 31 * result + getIndex();
result = 31 * result + (isCustom() ? 1 : 0);
return result;
}
}