This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-codec.git
The following commit(s) were added to refs/heads/master by this push:
new 03e5497 Added @since 1.14 to MurmurHash3 additions.
03e5497 is described below
commit 03e54974626c4abc6004eeecb5db600222389eb9
Author: aherbert <[email protected]>
AuthorDate: Thu Nov 21 17:07:50 2019 +0000
Added @since 1.14 to MurmurHash3 additions.
---
src/main/java/org/apache/commons/codec/digest/MurmurHash3.java | 6 ++++++
1 file changed, 6 insertions(+)
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 513ace8..bbedbf0 100644
--- a/src/main/java/org/apache/commons/codec/digest/MurmurHash3.java
+++ b/src/main/java/org/apache/commons/codec/digest/MurmurHash3.java
@@ -373,6 +373,7 @@ public final class MurmurHash3 {
* @param data The input byte array
* @return The 32-bit hash
* @see #hash32x86(byte[], int, int, int)
+ * @since 1.14
*/
public static int hash32x86(final byte[] data) {
return hash32x86(data, 0, data.length, 0);
@@ -389,6 +390,7 @@ public final class MurmurHash3 {
* @param length The length of array
* @param seed The initial seed value
* @return The 32-bit hash
+ * @since 1.14
*/
public static int hash32x86(final byte[] data, final int offset, final int
length, final int seed) {
int hash = seed;
@@ -686,6 +688,7 @@ public final class MurmurHash3 {
* @param data The input byte array
* @return The 128-bit hash (2 longs)
* @see #hash128x64(byte[], int, int, int)
+ * @since 1.14
*/
public static long[] hash128x64(final byte[] data) {
return hash128x64(data, 0, data.length, 0);
@@ -750,6 +753,7 @@ public final class MurmurHash3 {
* @param length The length of array
* @param seed The initial seed value
* @return The 128-bit hash (2 longs)
+ * @since 1.14
*/
public static long[] hash128x64(final byte[] data, final int offset, final
int length, final int seed) {
// Use an unsigned 32-bit integer as the seed
@@ -943,6 +947,8 @@ public final class MurmurHash3 {
*
* <p>This is an implementation of the 32-bit hash function {@code
MurmurHash3_x86_32}
* from from Austin Applyby's original MurmurHash3 {@code c++} code in
SMHasher.</p>
+ *
+ * @since 1.14
*/
public static class IncrementalHash32x86 {
/** The size of byte blocks that are processed together. */