diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/br/BrazilianStemmer.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/br/BrazilianStemmer.java index 0038bdb7c6f..33629394744 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/br/BrazilianStemmer.java +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/br/BrazilianStemmer.java @@ -232,8 +232,8 @@ public class BrazilianStemmer { /** * 1) Turn to lowercase * 2) Remove accents - * 3) ã -> a ; õ -> o - * 4) ç -> c + * 3) ã -> a ; õ -> o + * 4) ç -> c * * @return null or a string transformed */ diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/cjk/CJKBigramFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/cjk/CJKBigramFilter.java index dc98909e5a8..734b7a3f489 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/cjk/CJKBigramFilter.java +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/cjk/CJKBigramFilter.java @@ -294,7 +294,7 @@ public final class CJKBigramFilter extends TokenFilter { /** * Flushes a bigram token to output from our buffer - * This is the normal case, e.g. ABC -> AB BC + * This is the normal case, e.g. ABC -> AB BC */ private void flushBigram() { clearAttributes(); diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/cz/CzechAnalyzer.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/cz/CzechAnalyzer.java index e8f49ef3616..426663a0628 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/cz/CzechAnalyzer.java +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/cz/CzechAnalyzer.java @@ -108,7 +108,7 @@ public final class CzechAnalyzer extends StopwordAnalyzerBase { * @return {@link org.apache.lucene.analysis.Analyzer.TokenStreamComponents} * built from a {@link StandardTokenizer} filtered with * {@link StandardFilter}, {@link LowerCaseFilter}, {@link StopFilter} - * , and {@link CzechStemFilter} (only if version is >= LUCENE_31). If + * , and {@link CzechStemFilter} (only if version is >= LUCENE_31). If * a stem exclusion set is provided via * {@link #CzechAnalyzer(CharArraySet, CharArraySet)} a * {@link SetKeywordMarkerFilter} is added before diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanStemmer.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanStemmer.java index 805437c0065..db9d92dda7d 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanStemmer.java +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanStemmer.java @@ -161,12 +161,12 @@ public class GermanStemmer /** * Do some substitutions for the term to reduce overstemming: * - * - Substitute Umlauts with their corresponding vowel: äöü -> aou, + * - Substitute Umlauts with their corresponding vowel:{@code äöü -> aou}, * "ß" is substituted by "ss" * - Substitute a second char of a pair of equal characters with - * an asterisk: ?? -> ?* + * an asterisk: {@code ?? -> ?*} * - Substitute some common character combinations with a token: - * sch/ch/ei/ie/ig/st -> $/§/%/&/#/! + * {@code sch/ch/ei/ie/ig/st -> $/§/%/&/#/!} */ private void substitute( StringBuilder buffer ) { diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/KStemmer.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/KStemmer.java index b4d68a5f797..204eaabc1e3 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/KStemmer.java +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/KStemmer.java @@ -248,7 +248,7 @@ public class KStemmer { * word, use the method wordLength, which returns (k+1). */ - /*** + /* * private void initializeStemHash() { if (maxCacheSize > 0) cache = new * CharArrayMap(maxCacheSize,false); } ***/ diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/Dictionary.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/Dictionary.java index 480382d0010..84746c9264f 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/Dictionary.java +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/Dictionary.java @@ -447,7 +447,7 @@ public class Dictionary { * @param reader BufferedReader to read the content of the rule from * @param conditionPattern {@link String#format(String, Object...)} pattern to be used to generate the condition regex * pattern - * @param seenPatterns map from condition -> index of patterns, for deduplication. + * @param seenPatterns map from condition -> index of patterns, for deduplication. * @throws IOException Can be thrown while reading the rule */ private void parseAffix(TreeMap> affixes, diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/lv/LatvianStemmer.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/lv/LatvianStemmer.java index 7b24926d1eb..efee85b85f3 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/lv/LatvianStemmer.java +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/lv/LatvianStemmer.java @@ -87,10 +87,10 @@ public class LatvianStemmer { /** * Most cases are handled except for the ambiguous ones: * */ private int unpalatalize(char s[], int len) { diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.java index 4afe735b435..e289a5b5572 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.java +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.java @@ -153,7 +153,7 @@ public final class ASCIIFoldingFilter extends TokenFilter { * accents are removed from accented characters. * @param input The characters to fold * @param inputPos Index of the first character to fold - * @param output The result of the folding. Should be of size >= {@code length * 4}. + * @param output The result of the folding. Should be of size >= {@code length * 4}. * @param outputPos Index of output where to put the result of the folding * @param length The number of characters to fold * @return length of output diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/CapitalizationFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/CapitalizationFilter.java index f762cc43b66..af2a2f36fe8 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/CapitalizationFilter.java +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/CapitalizationFilter.java @@ -65,7 +65,7 @@ public final class CapitalizationFilter extends TokenFilter { * @param forceFirstLetter Force the first letter to be capitalized even if it is in the keep list. * @param okPrefix do not change word capitalization if a word begins with something in this list. * @param minWordLength how long the word needs to be to get capitalization applied. If the - * minWordLength is 3, "and" > "And" but "or" stays "or". + * minWordLength is 3, "and" > "And" but "or" stays "or". * @param maxWordCount if the token contains more then maxWordCount words, the capitalization is * assumed to be correct. * @param maxTokenLength ??? diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/CapitalizationFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/CapitalizationFilterFactory.java index 986994e5121..8159d8affd1 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/CapitalizationFilterFactory.java +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/CapitalizationFilterFactory.java @@ -39,7 +39,7 @@ import java.util.Set; * for example if "McK" is on the okPrefix list, the word "McKinley" should not be changed to * "Mckinley"
* "minWordLength" - how long the word needs to be to get capitalization applied. If the - * minWordLength is 3, "and" > "And" but "or" stays "or"
+ * minWordLength is 3, "and" > "And" but "or" stays "or"
* "maxWordCount" - if the token contains more then maxWordCount words, the capitalization is * assumed to be correct.
* diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ScandinavianFoldingFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ScandinavianFoldingFilter.java index 05a5f5a628b..26ab2d3a3df 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ScandinavianFoldingFilter.java +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ScandinavianFoldingFilter.java @@ -25,7 +25,7 @@ import org.apache.lucene.analysis.util.StemmerUtil; import java.io.IOException; /** - * This filter folds Scandinavian characters åÅäæÄÆ->a and öÖøØ->o. + * This filter folds Scandinavian characters åÅäæÄÆ->a and öÖøØ->o. * It also discriminate against use of double vowels aa, ae, ao, oe and oo, leaving just the first one. *

* It's is a semantically more destructive solution than {@link ScandinavianNormalizationFilter} but diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/WordDelimiterFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/WordDelimiterFilter.java index e158910035a..aa698631423 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/WordDelimiterFilter.java +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/WordDelimiterFilter.java @@ -66,7 +66,7 @@ import java.util.Arrays; *