Suppress fall-through warning in minmash's murmur

This commit is contained in:
Uwe Schindler 2016-07-28 11:21:34 +02:00
parent 90e9c76851
commit f34a9ecd74
1 changed files with 1 additions and 0 deletions

View File

@ -402,6 +402,7 @@ public class MinHashFilter extends TokenFilter {
} }
/** Returns the MurmurHash3_x64_128 hash, placing the result in "out". */ /** Returns the MurmurHash3_x64_128 hash, placing the result in "out". */
@SuppressWarnings("fallthrough") // the huge switch is designed to use fall through into cases!
static void murmurhash3_x64_128(byte[] key, int offset, int len, int seed, LongPair out) { static void murmurhash3_x64_128(byte[] key, int offset, int len, int seed, LongPair out) {
// The original algorithm does have a 32 bit unsigned seed. // The original algorithm does have a 32 bit unsigned seed.
// We have to mask to match the behavior of the unsigned types and prevent sign extension. // We have to mask to match the behavior of the unsigned types and prevent sign extension.