Apache Solr open-source search software
LUCENE-6621: Removed two unused variables in analysis/stempel/src/java/org/egothor/stemmer/Compile.java
Christine Poerschkea3cff55407a4
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex e8b897364ab..6d3ccb3443f 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -372,6 +372,10 @@ Optimizations* LUCENE-6690: Sped up MultiTermsEnum.next() on high-cardinality fields.(Adrien Grand)+* LUCENE-6621: Removed two unused variables in analysis/stempel/src/java/org/+ egothor/stemmer/Compile.java+ (Rishabh Patel via Christine Poerschke)+Build* LUCENE-6518: Don't report false thread leaks from IBM J9diff --git a/lucene/analysis/stempel/src/java/org/egothor/stemmer/Compile.java b/lucene/analysis/stempel/src/java/org/egothor/stemmer/Compile.javaindex 07bf13f92ee..b175ac9494f 100644--- a/lucene/analysis/stempel/src/java/org/egothor/stemmer/Compile.java+++ b/lucene/analysis/stempel/src/java/org/egothor/stemmer/Compile.java@@ -120,8 +120,6 @@ public class Compile {LineNumberReader in;// System.out.println("[" + args[i] + "]");Diff diff = new Diff();- int stems = 0;- int words = 0;allocTrie();@@ -134,13 +132,11 @@ public class Compile {String stem = st.nextToken();if (storeorig) {trie.add(stem, "-a");- words++;}while (st.hasMoreTokens()) {String token = st.nextToken();if (token.equals(stem) == false) {trie.add(token, diff.exec(token, stem));- words++;}}} catch (java.util.NoSuchElementException x) {