diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-04-13 18:58:58 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-04-13 18:58:58 +0000 |
commit | 0fec5927b3ec89549c3e78b935f0f075120037d0 (patch) | |
tree | 4bb9c1b344948a4a16cb058c50760362dab364a1 /java/src/Ice/ProxyIdentityFacetKey.java | |
parent | facet fix (diff) | |
download | ice-0fec5927b3ec89549c3e78b935f0f075120037d0.tar.bz2 ice-0fec5927b3ec89549c3e78b935f0f075120037d0.tar.xz ice-0fec5927b3ec89549c3e78b935f0f075120037d0.zip |
align with C++ facet changes
Diffstat (limited to 'java/src/Ice/ProxyIdentityFacetKey.java')
-rw-r--r-- | java/src/Ice/ProxyIdentityFacetKey.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/java/src/Ice/ProxyIdentityFacetKey.java b/java/src/Ice/ProxyIdentityFacetKey.java index cb17925f229..ddea1ed5a0e 100644 --- a/java/src/Ice/ProxyIdentityFacetKey.java +++ b/java/src/Ice/ProxyIdentityFacetKey.java @@ -32,10 +32,7 @@ public class ProxyIdentityFacetKey _identity = proxy.ice_getIdentity(); _facet = proxy.ice_getFacet(); int h = _identity.hashCode(); - for(int i = 0; i < _facet.length; i++) - { - h = 5 * h + _facet[i].hashCode(); - } + h = 5 * h + _facet.hashCode(); _hashCode = h; } @@ -49,8 +46,7 @@ public class ProxyIdentityFacetKey equals(java.lang.Object obj) { ProxyIdentityFacetKey other = (ProxyIdentityFacetKey)obj; - return (_hashCode == other._hashCode) && _identity.equals(other._identity) && - java.util.Arrays.equals(_facet, other._facet); + return (_hashCode == other._hashCode) && _identity.equals(other._identity) && _facet.equals(other._facet); } public Ice.ObjectPrx @@ -61,6 +57,6 @@ public class ProxyIdentityFacetKey final private Ice.ObjectPrx _proxy; final private Ice.Identity _identity; - final private String[] _facet; + final private String _facet; final private int _hashCode; } |