mirror of https://github.com/apache/lucene.git
remove an unused variable and clean up imports
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150411 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
41cf1702b3
commit
5568be02cf
|
@ -18,7 +18,6 @@ package org.apache.lucene.search.spans;
|
||||||
|
|
||||||
import org.apache.lucene.search.IndexSearcher;
|
import org.apache.lucene.search.IndexSearcher;
|
||||||
import org.apache.lucene.search.Query;
|
import org.apache.lucene.search.Query;
|
||||||
import org.apache.lucene.search.Hits;
|
|
||||||
import org.apache.lucene.search.CheckHits;
|
import org.apache.lucene.search.CheckHits;
|
||||||
import org.apache.lucene.store.RAMDirectory;
|
import org.apache.lucene.store.RAMDirectory;
|
||||||
import org.apache.lucene.index.IndexWriter;
|
import org.apache.lucene.index.IndexWriter;
|
||||||
|
@ -29,8 +28,6 @@ import org.apache.lucene.document.Field;
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Set;
|
|
||||||
import java.util.TreeSet;
|
|
||||||
|
|
||||||
public class TestSpans extends TestCase {
|
public class TestSpans extends TestCase {
|
||||||
private IndexSearcher searcher;
|
private IndexSearcher searcher;
|
||||||
|
@ -40,7 +37,6 @@ public class TestSpans extends TestCase {
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
RAMDirectory directory = new RAMDirectory();
|
RAMDirectory directory = new RAMDirectory();
|
||||||
IndexWriter writer= new IndexWriter(directory, new WhitespaceAnalyzer(), true);
|
IndexWriter writer= new IndexWriter(directory, new WhitespaceAnalyzer(), true);
|
||||||
StringBuffer buffer = new StringBuffer();
|
|
||||||
for (int i = 0; i < docFields.length; i++) {
|
for (int i = 0; i < docFields.length; i++) {
|
||||||
Document doc = new Document();
|
Document doc = new Document();
|
||||||
doc.add(Field.Text(field, docFields[i]));
|
doc.add(Field.Text(field, docFields[i]));
|
||||||
|
|
|
@ -16,7 +16,6 @@ package org.apache.lucene.util;
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
|
|
||||||
|
@ -55,8 +54,6 @@ public class TestPriorityQueue
|
||||||
Random gen = new Random();
|
Random gen = new Random();
|
||||||
int sum = 0, sum2 = 0;
|
int sum = 0, sum2 = 0;
|
||||||
|
|
||||||
Date start = new Date();
|
|
||||||
|
|
||||||
for (int i = 0; i < count; i++)
|
for (int i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
int next = gen.nextInt();
|
int next = gen.nextInt();
|
||||||
|
|
Loading…
Reference in New Issue