mirror of https://github.com/apache/lucene.git
LUCENE-6621: Removed two unused variables in analysis/stempel/src/java/org/egothor/stemmer/Compile.java
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1693482 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c75e5c61d7
commit
a3cff55407
|
@ -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 J9
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue