harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r822216 - /harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/dns/DNSContext.java
Date Tue, 06 Oct 2009 11:00:35 GMT
Author: tellison
Date: Tue Oct  6 11:00:35 2009
New Revision: 822216

URL: http://svn.apache.org/viewvc?rev=822216&view=rev
Log:
Define hashCode to compliment the equals method.

Modified:
    harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/dns/DNSContext.java

Modified: harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/dns/DNSContext.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/dns/DNSContext.java?rev=822216&r1=822215&r2=822216&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/dns/DNSContext.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/dns/DNSContext.java
Tue Oct  6 11:00:35 2009
@@ -2061,6 +2061,16 @@
     }
 
     /**
+     * Returns the hash of the context.
+     * 
+     * @return the hash code.
+     */
+    @Override
+    public int hashCode() {
+        return contextName.hashCode();
+    }
+
+    /**
      * @param name
      *            composite name to process
      * @return root context of the namespace to that the target object belongs



Mime
View raw message