From 9f85633b2db69d919c1f676ba3fadbafd721cc72 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Sat, 15 Aug 2015 10:32:57 +0000 Subject: [PATCH] LUCENE-6740: Reduce warnings emitted by javac git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1696035 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/lucene/analysis/charfilter/HTMLStripCharFilter.java | 1 + .../apache/lucene/analysis/charfilter/HTMLStripCharFilter.jflex | 1 + .../apache/lucene/analysis/standard/ClassicTokenizerImpl.java | 1 + .../apache/lucene/analysis/standard/ClassicTokenizerImpl.jflex | 1 + .../apache/lucene/analysis/standard/StandardTokenizerImpl.java | 1 + .../apache/lucene/analysis/standard/StandardTokenizerImpl.jflex | 1 + .../lucene/analysis/standard/UAX29URLEmailTokenizerImpl.java | 1 + .../lucene/analysis/standard/UAX29URLEmailTokenizerImpl.jflex | 1 + .../apache/lucene/analysis/wikipedia/WikipediaTokenizerImpl.java | 1 + .../lucene/analysis/wikipedia/WikipediaTokenizerImpl.jflex | 1 + 10 files changed, 10 insertions(+) diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.java index 9a5efaf701a..d5a8eb83621 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.java +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.java @@ -33,6 +33,7 @@ import org.apache.lucene.analysis.util.OpenStringBuilder; /** * A CharFilter that wraps another Reader and attempts to strip out HTML constructs. */ +@SuppressWarnings("fallthrough") public final class HTMLStripCharFilter extends BaseCharFilter { diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.jflex b/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.jflex index 8c34577d8a6..9db8c7ef366 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.jflex +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.jflex @@ -31,6 +31,7 @@ import org.apache.lucene.analysis.util.OpenStringBuilder; /** * A CharFilter that wraps another Reader and attempts to strip out HTML constructs. */ +@SuppressWarnings("fallthrough") %% %unicode 6.3 diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/ClassicTokenizerImpl.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/ClassicTokenizerImpl.java index c0d311a0c34..6578ee25bd8 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/ClassicTokenizerImpl.java +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/ClassicTokenizerImpl.java @@ -25,6 +25,7 @@ import org.apache.lucene.analysis.tokenattributes.CharTermAttribute; /** * This class implements the classic lucene StandardTokenizer up until 3.0 */ +@SuppressWarnings("fallthrough") class ClassicTokenizerImpl { diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/ClassicTokenizerImpl.jflex b/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/ClassicTokenizerImpl.jflex index d3838aaa8ff..cb9b1a68311 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/ClassicTokenizerImpl.jflex +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/ClassicTokenizerImpl.jflex @@ -23,6 +23,7 @@ import org.apache.lucene.analysis.tokenattributes.CharTermAttribute; /** * This class implements the classic lucene StandardTokenizer up until 3.0 */ +@SuppressWarnings("fallthrough") %% %class ClassicTokenizerImpl diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.java index 81805cb7db9..8d6aeb5e311 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.java +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.java @@ -38,6 +38,7 @@ import org.apache.lucene.analysis.tokenattributes.CharTermAttribute; *
  • <HANGUL>: A sequence of Hangul characters
  • * */ +@SuppressWarnings("fallthrough") public final class StandardTokenizerImpl { diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.jflex b/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.jflex index 090822c74ee..c89ffa87903 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.jflex +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.jflex @@ -36,6 +36,7 @@ import org.apache.lucene.analysis.tokenattributes.CharTermAttribute; *
  • <HANGUL>: A sequence of Hangul characters
  • * */ +@SuppressWarnings("fallthrough") %% %unicode 6.3 diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/UAX29URLEmailTokenizerImpl.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/UAX29URLEmailTokenizerImpl.java index 81621e2acb5..9ef2870826f 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/UAX29URLEmailTokenizerImpl.java +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/UAX29URLEmailTokenizerImpl.java @@ -41,6 +41,7 @@ import org.apache.lucene.analysis.tokenattributes.CharTermAttribute; *
  • <HANGUL>: A sequence of Hangul characters
  • * */ +@SuppressWarnings("fallthrough") public final class UAX29URLEmailTokenizerImpl { diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/UAX29URLEmailTokenizerImpl.jflex b/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/UAX29URLEmailTokenizerImpl.jflex index 7af02ac9e95..5af3888a4b4 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/UAX29URLEmailTokenizerImpl.jflex +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/standard/UAX29URLEmailTokenizerImpl.jflex @@ -39,6 +39,7 @@ import org.apache.lucene.analysis.tokenattributes.CharTermAttribute; *
  • <HANGUL>: A sequence of Hangul characters
  • * */ +@SuppressWarnings("fallthrough") %% %unicode 6.3 diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/wikipedia/WikipediaTokenizerImpl.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/wikipedia/WikipediaTokenizerImpl.java index d44f8b56602..ee8a36ae588 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/wikipedia/WikipediaTokenizerImpl.java +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/wikipedia/WikipediaTokenizerImpl.java @@ -24,6 +24,7 @@ import org.apache.lucene.analysis.tokenattributes.CharTermAttribute; /** * JFlex-generated tokenizer that is aware of Wikipedia syntax. */ +@SuppressWarnings("fallthrough") class WikipediaTokenizerImpl { diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/wikipedia/WikipediaTokenizerImpl.jflex b/lucene/analysis/common/src/java/org/apache/lucene/analysis/wikipedia/WikipediaTokenizerImpl.jflex index 10e5c9fe4ca..5293bbb850c 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/wikipedia/WikipediaTokenizerImpl.jflex +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/wikipedia/WikipediaTokenizerImpl.jflex @@ -22,6 +22,7 @@ import org.apache.lucene.analysis.tokenattributes.CharTermAttribute; /** * JFlex-generated tokenizer that is aware of Wikipedia syntax. */ +@SuppressWarnings("fallthrough") %% %class WikipediaTokenizerImpl