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:22:48 UTC

lucene-solr:branch_6x: Suppress fall-through warning in minmash's murmur

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x 90e9c7685 -> f34a9ecd7


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/f34a9ecd
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/f34a9ecd
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/f34a9ecd

Branch: refs/heads/branch_6x
Commit: f34a9ecd742166b51c2e547b6fc4250929978c29
Parents: 90e9c76
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:22:32 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/f34a9ecd/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.