mirror of https://github.com/apache/lucene.git
remove a few unnecessary dead stores from tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@806372 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c49c47515f
commit
de38872c68
|
@ -77,9 +77,6 @@ public class TestElevationComparator extends LuceneTestCase {
|
|||
TopDocs topDocs = topCollector.topDocs(0, 10);
|
||||
int nDocsReturned = topDocs.scoreDocs.length;
|
||||
|
||||
int[] ids = new int[nDocsReturned];
|
||||
float[] scores = new float[nDocsReturned];
|
||||
Document[] documents = new Document[nDocsReturned];
|
||||
assertEquals(4, nDocsReturned);
|
||||
|
||||
// 0 & 3 were elevated
|
||||
|
|
|
@ -558,7 +558,6 @@ public class TestPhraseQuery extends LuceneTestCase {
|
|||
|
||||
// LUCENE-1280
|
||||
public void testEmptyPhraseQuery() throws Throwable {
|
||||
final PhraseQuery q1 = new PhraseQuery();
|
||||
final BooleanQuery q2 = new BooleanQuery();
|
||||
q2.add(new PhraseQuery(), BooleanClause.Occur.MUST);
|
||||
q2.toString();
|
||||
|
|
|
@ -362,7 +362,6 @@ public class TestPayloadSpans extends LuceneTestCase {
|
|||
public void testPayloadSpanUtil() throws Exception {
|
||||
RAMDirectory directory = new RAMDirectory();
|
||||
PayloadAnalyzer analyzer = new PayloadAnalyzer();
|
||||
String[] docs = new String[]{};
|
||||
IndexWriter writer = new IndexWriter(directory, analyzer, true);
|
||||
writer.setSimilarity(similarity);
|
||||
Document doc = new Document();
|
||||
|
|
Loading…
Reference in New Issue