You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by cz...@apache.org on 2002/06/03 14:12:17 UTC
cvs commit: jakarta-avalon-excalibur/collections/src/java/org/apache/avalon/excalibur/collections BucketMap.java
cziegeler 2002/06/03 05:12:17
Modified: collections/src/java/org/apache/avalon/excalibur/collections
BucketMap.java
Log:
Now it compiles again - hope the changes are correct?
Revision Changes Path
1.17 +7 -7 jakarta-avalon-excalibur/collections/src/java/org/apache/avalon/excalibur/collections/BucketMap.java
Index: BucketMap.java
===================================================================
RCS file: /home/cvs/jakarta-avalon-excalibur/collections/src/java/org/apache/avalon/excalibur/collections/BucketMap.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- BucketMap.java 31 May 2002 21:15:42 -0000 1.16
+++ BucketMap.java 3 Jun 2002 12:12:17 -0000 1.17
@@ -22,7 +22,7 @@
*
* @author <a href="bloritsch@apache.org">Berin Loritsch</a>
* @author <a href="g-froehlich@gmx.de">Gerhard Froehlich</a>
- * @version CVS $Revision: 1.16 $ $Date: 2002/05/31 21:15:42 $
+ * @version CVS $Revision: 1.17 $ $Date: 2002/06/03 12:12:17 $
* @since 4.0
*/
public final class BucketMap implements Map
@@ -69,17 +69,17 @@
/**
* Determine the exact hash entry for the key. The hash algorithm
* is rather simplistic, but it does the job:
- *
+ *
* <pre>
* He = |Hk mod n|
* </pre>
- *
+ *
* <p>
* He is the entry's hashCode, Hk is the key's hashCode, and n is
* the number of buckets.
* </p>
*/
- private static final int getHash( Object key )
+ private final int getHash( Object key )
{
final int hash = key.hashCode() % m_buckets.length;
return ( hash < 0 ) ? hash * -1 : hash;
@@ -419,7 +419,7 @@
/**
* The Map.Entry for the BucketMap.
*/
- private static final class Node implements Map.Entry
+ private final class Node implements Map.Entry
{
protected Object key;
protected Object value;
@@ -434,8 +434,8 @@
{
return value;
}
-
- public long hashCode()
+
+ public int hashCode()
{
return getHash( key );
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>