| commit | 63c644d6a8ae3e758a34de750f88d3e85c50bba0 | [log] [tgz] |
|---|---|---|
| author | jtham <jtham> | Wed Jul 18 19:53:17 2007 +0000 |
| committer | jtham <jtham> | Wed Jul 18 19:53:17 2007 +0000 |
| tree | 4cb7b4c3c2e8779f636e4cb660ff1e8562318c6d | |
| parent | 7894fbec66754b49f135aec6b87c9209f14a049f [diff] |
wlu: override hashCode method
diff --git a/org.eclipse.epf.uma.ecore/src/org/eclipse/epf/uma/ecore/ResolveException.java b/org.eclipse.epf.uma.ecore/src/org/eclipse/epf/uma/ecore/ResolveException.java index 71ac72b..a0e082c 100644 --- a/org.eclipse.epf.uma.ecore/src/org/eclipse/epf/uma/ecore/ResolveException.java +++ b/org.eclipse.epf.uma.ecore/src/org/eclipse/epf/uma/ecore/ResolveException.java
@@ -98,5 +98,17 @@ } return super.equals(obj); } - + + public int hashCode() { + if (proxy instanceof InternalEObject) { + int hc = resolver == null ? 0 : resolver.hashCode(); + URI uri = ((InternalEObject) proxy).eProxyURI(); + if (uri != null) { + return (Integer.toString(hc) + uri).hashCode(); + } + return hc; + } + return super.hashCode(); + } + }