geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r279959 - /geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/RealmPrincipal.java
Date Sat, 10 Sep 2005 06:00:52 GMT
Author: adc
Date: Fri Sep  9 23:00:51 2005
New Revision: 279959

URL: http://svn.apache.org/viewcvs?rev=279959&view=rev
Log:
Fixed hashCode()

Modified:
    geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/RealmPrincipal.java

Modified: geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/RealmPrincipal.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/RealmPrincipal.java?rev=279959&r1=279958&r2=279959&view=diff
==============================================================================
--- geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/RealmPrincipal.java
(original)
+++ geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/RealmPrincipal.java
Fri Sep  9 23:00:51 2005
@@ -84,7 +84,10 @@
      * @return a hashcode for this principal.
      */
     public int hashCode() {
-        return getName().hashCode();
+        int result;
+        result = loginDomain.hashCode();
+        result = 29 * result + principal.hashCode();
+        return result;
     }
 
     /**



Mime
View raw message