svn commit: r615959 - /lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/ac/impl/CredentialImpl.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Mon Jan 28 09:20:00 2008
New Revision: 615959

URL: http://svn.apache.org/viewvc?rev=615959&view=rev
Log:
Applying patch for CredentialImpl.hashCode(). This fixes bug 43859. Thanks to Jonathan Addison for the patch.

Modified:
    lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/ac/impl/CredentialImpl.java

Modified: lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/ac/impl/CredentialImpl.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/ac/impl/CredentialImpl.java?rev=615959&r1=615958&r2=615959&view=diff
==============================================================================
--- lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/ac/impl/CredentialImpl.java (original)
+++ lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/ac/impl/CredentialImpl.java Mon Jan 28 09:20:00 2008
@@ -107,6 +107,7 @@
     }
 
     public int hashCode() {
-        return Integer.valueOf(getAccreditable().hashCode() + getRole().hashCode()).hashCode();
+        Integer integer = new Integer(getAccreditable().hashCode() + getRole().hashCode());
+        return integer.hashCode();
     }
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.