lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r806372 - in /lucene/java/trunk/src/test/org/apache/lucene/search: TestElevationComparator.java TestPhraseQuery.java spans/TestPayloadSpans.java
Date Thu, 20 Aug 2009 21:51:47 GMT
Author: markrmiller
Date: Thu Aug 20 21:51:47 2009
New Revision: 806372

URL: http://svn.apache.org/viewvc?rev=806372&view=rev
Log:
remove a few unnecessary dead stores from tests

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/search/TestElevationComparator.java
    lucene/java/trunk/src/test/org/apache/lucene/search/TestPhraseQuery.java
    lucene/java/trunk/src/test/org/apache/lucene/search/spans/TestPayloadSpans.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/search/TestElevationComparator.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/search/TestElevationComparator.java?rev=806372&r1=806371&r2=806372&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/search/TestElevationComparator.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/search/TestElevationComparator.java Thu Aug
20 21:51:47 2009
@@ -77,9 +77,6 @@
     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

Modified: lucene/java/trunk/src/test/org/apache/lucene/search/TestPhraseQuery.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/search/TestPhraseQuery.java?rev=806372&r1=806371&r2=806372&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/search/TestPhraseQuery.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/search/TestPhraseQuery.java Thu Aug 20 21:51:47
2009
@@ -558,7 +558,6 @@
 
   // 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();

Modified: lucene/java/trunk/src/test/org/apache/lucene/search/spans/TestPayloadSpans.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/search/spans/TestPayloadSpans.java?rev=806372&r1=806371&r2=806372&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/search/spans/TestPayloadSpans.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/search/spans/TestPayloadSpans.java Thu Aug
20 21:51:47 2009
@@ -362,7 +362,6 @@
   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();



Mime
View raw message