/[Apache-SVN]/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/util/JenkinsHash.java
ViewVC logotype

Diff of /hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/util/JenkinsHash.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/util/JenkinsHash.java	2008/08/28 16:49:51	689888
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/util/JenkinsHash.java	2008/09/09 20:36:49	693597
@@ -43,7 +43,7 @@
   private static long BYTE_MASK = 0x00000000000000ffL;
 
   private static long rot(long val, int pos) {
-    return ((long)(Integer.rotateLeft(
+    return ((Integer.rotateLeft(
         (int)(val & INT_MASK), pos)) & INT_MASK);
   }
 
@@ -93,6 +93,7 @@
    * <p>Use for hash table lookup, or anything where one collision in 2^^32 is
    * acceptable.  Do NOT use for cryptographic purposes.
   */
+  @SuppressWarnings("fallthrough")
   public static int hash(byte[] key, int nbytes, int initval) {
     int length = nbytes;
     long a, b, c;       // We use longs because we don't have unsigned ints

 

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2