Cleanup imports and remove @Override related to interfaces.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1022871 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrzej Bialecki 2010-10-15 09:44:37 +00:00
parent 7f6dd505f1
commit e8a0629ac1
3 changed files with 0 additions and 13 deletions

View File

@ -21,7 +21,6 @@ public class BufferingTermFreqIteratorWrapper implements TermFreqIterator {
this.freq = freq;
}
@Override
public int compareTo(Entry o) {
return word.compareTo(o.word);
}
@ -42,24 +41,20 @@ public class BufferingTermFreqIteratorWrapper implements TermFreqIterator {
curPos = 0;
}
@Override
public float freq() {
return curEntry.freq;
}
@Override
public boolean hasNext() {
return curPos < entries.size();
}
@Override
public String next() {
curEntry = entries.get(curPos);
curPos++;
return curEntry.word;
}
@Override
public void remove() {
throw new UnsupportedOperationException("remove is not supported");
}

View File

@ -13,22 +13,18 @@ public interface TermFreqIterator extends Iterator<String> {
this.wrapped = wrapped;
}
@Override
public float freq() {
return 1.0f;
}
@Override
public boolean hasNext() {
return wrapped.hasNext();
}
@Override
public String next() {
return wrapped.next().toString();
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}

View File

@ -20,16 +20,12 @@ package org.apache.solr.spelling.suggest;
import org.apache.lucene.util.RamUsageEstimator;
import org.apache.solr.SolrTestCaseJ4;
import org.apache.solr.common.params.SpellingParams;
import org.apache.solr.search.SolrIndexSearcher;
import org.apache.solr.spelling.suggest.Lookup.LookupResult;
import org.apache.solr.spelling.suggest.jaspell.JaspellLookup;
import org.apache.solr.spelling.suggest.tst.TSTLookup;
import org.apache.solr.util.RefCounted;
import org.apache.solr.util.TermFreqIterator;
import org.apache.solr.util.TestHarness;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
import java.util.HashMap;
import java.util.List;