diff --git a/src/main/java/org/apache/commons/codec/digest/MurmurHash3.java b/src/main/java/org/apache/commons/codec/digest/MurmurHash3.java index 45bc4c3351..9cfb77fcc9 100644 --- a/src/main/java/org/apache/commons/codec/digest/MurmurHash3.java +++ b/src/main/java/org/apache/commons/codec/digest/MurmurHash3.java @@ -428,6 +428,9 @@ public static int hash32x86(final byte[] data, final int offset, final int lengt * {@linkplain #hash128x64(byte[])} with the same byte data from the {@code long}. * This method will be removed in a future release.

* + *

Note: The sign extension bug in {@link #hash64(byte[], int, int, int)} does not effect + * this result as the default seed is positive.

+ * *

This is a helper method that will produce the same result as:

* *
@@ -471,6 +474,9 @@ public static long hash64(final long data) {
      * {@linkplain #hash128x64(byte[])} with the same byte data from the {@code int}.
      * This method will be removed in a future release.

* + *

Note: The sign extension bug in {@link #hash64(byte[], int, int, int)} does not effect + * this result as the default seed is positive.

+ * *

This is a helper method that will produce the same result as:

* *
@@ -512,6 +518,9 @@ public static long hash64(final int data) {
      * {@linkplain #hash128x64(byte[])} with the same byte data from the {@code short}.
      * This method will be removed in a future release.

* + *

Note: The sign extension bug in {@link #hash64(byte[], int, int, int)} does not effect + * this result as the default seed is positive.

+ * *

This is a helper method that will produce the same result as:

* *
@@ -555,6 +564,9 @@ public static long hash64(final short data) {
      * {@linkplain #hash128x64(byte[])} with the same byte data.
      * This method will be removed in a future release.

* + *

Note: The sign extension bug in {@link #hash64(byte[], int, int, int)} does not effect + * this result as the default seed is positive.

+ * *

This is a helper method that will produce the same result as:

* *
@@ -584,6 +596,9 @@ public static long hash64(final byte[] data) {
      * {@linkplain #hash128x64(byte[])} with the same byte data.
      * This method will be removed in a future release.

* + *

Note: The sign extension bug in {@link #hash64(byte[], int, int, int)} does not effect + * this result as the default seed is positive.

+ * *

This is a helper method that will produce the same result as:

* *
@@ -612,6 +627,9 @@ public static long hash64(final byte[] data, final int offset, final int length)
      * 

This is a Murmur3-like 64-bit variant. * This method will be removed in a future release.

* + *

This implementation contains a sign-extension bug in the seed initialization. + * This manifests if the seed is negative.

+ * *

This algorithm processes 8 bytes chunks of data in a manner similar to the 16 byte chunks * of data processed in the MurmurHash3 {@code MurmurHash3_x64_128} method. However the hash * is not mixed with a hash chunk from the next 8 bytes of data. The method will not return