You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2016/07/28 09:21:49 UTC
lucene-solr:master: Suppress fall-through warning in minmash's murmur
Repository: lucene-solr
Updated Branches:
refs/heads/master 78ebcd3cf -> ef53ef9fc
Suppress fall-through warning in minmash's murmur
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/ef53ef9f
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/ef53ef9f
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/ef53ef9f
Branch: refs/heads/master
Commit: ef53ef9fcb4ba91dc583b44fc63fd32d94687841
Parents: 78ebcd3
Author: Uwe Schindler <us...@apache.org>
Authored: Thu Jul 28 11:21:34 2016 +0200
Committer: Uwe Schindler <us...@apache.org>
Committed: Thu Jul 28 11:21:34 2016 +0200
----------------------------------------------------------------------
.../src/java/org/apache/lucene/analysis/minhash/MinHashFilter.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/ef53ef9f/lucene/analysis/common/src/java/org/apache/lucene/analysis/minhash/MinHashFilter.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/minhash/MinHashFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/minhash/MinHashFilter.java
index 1a1a637..61c816d 100644
--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/minhash/MinHashFilter.java
+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/minhash/MinHashFilter.java
@@ -402,6 +402,7 @@ public class MinHashFilter extends TokenFilter {
}
/** 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) {
// 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.