mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
StubParentStrategy: equals() performance
DomStub#hashCode: add index, custom
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user