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:
Mark Robert Miller 2009-08-20 21:51:47 +00:00
parent c49c47515f
commit de38872c68
3 changed files with 0 additions and 5 deletions

View File

@ -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

View File

@ -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();

View File

@ -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();