Apache Lucene open-source search software
remove useless parameter
Daniel Naber529214394c4e
diff --git a/src/test/org/apache/lucene/search/CheckHits.java b/src/test/org/apache/lucene/search/CheckHits.javaindex 985f1aabcb2..65c22ac8eb8 100644--- a/src/test/org/apache/lucene/search/CheckHits.java+++ b/src/test/org/apache/lucene/search/CheckHits.java@@ -29,8 +29,7 @@ public class CheckHits {Query query,String defaultFieldName,Searcher searcher,- int[] results,- TestCase testCase)+ int[] results)throws IOException {Hits hits = searcher.search(query);@@ -48,7 +47,7 @@ public class CheckHits {}/** Tests that a Hits has an expected order of documents */- public static void checkDocIds(String mes, int[] results, Hits hits, TestCase testCase)+ public static void checkDocIds(String mes, int[] results, Hits hits)throws IOException {TestCase.assertEquals(mes + " nr of hits", results.length, hits.length());for (int i = 0; i < results.length; i++) {@@ -63,12 +62,11 @@ public class CheckHits {Query query,Hits hits1,Hits hits2,- int[] results,- TestCase testCase)+ int[] results)throws IOException {- checkDocIds("hits1", results, hits1, testCase);- checkDocIds("hits2", results, hits2, testCase);+ checkDocIds("hits1", results, hits1);+ checkDocIds("hits2", results, hits2);final float scoreTolerance = 1.0e-7f;for (int i = 0; i < results.length; i++) {diff --git a/src/test/org/apache/lucene/search/TestBoolean2.java b/src/test/org/apache/lucene/search/TestBoolean2.javaindex 1bb5faf3c10..03f772e2743 100644--- a/src/test/org/apache/lucene/search/TestBoolean2.java+++ b/src/test/org/apache/lucene/search/TestBoolean2.java@@ -73,7 +73,7 @@ public class TestBoolean2 extends TestCase {BooleanQuery.setUseScorer14(false);Hits hits2 = searcher.search(query2);- CheckHits.checkHitsQuery(query2, hits1, hits2, expDocNrs, this);+ CheckHits.checkHitsQuery(query2, hits1, hits2, expDocNrs);}public void testQueries01() throws Exception {diff --git a/src/test/org/apache/lucene/search/spans/TestBasics.java b/src/test/org/apache/lucene/search/spans/TestBasics.javaindex 7ac36fba95d..f73a2f23862 100644--- a/src/test/org/apache/lucene/search/spans/TestBasics.java+++ b/src/test/org/apache/lucene/search/spans/TestBasics.java@@ -263,6 +263,6 @@ public class TestBasics extends TestCase {private void checkHits(Query query, int[] results) throws IOException {- CheckHits.checkHits(query, "field", searcher, results, this);+ CheckHits.checkHits(query, "field", searcher, results);}}diff --git a/src/test/org/apache/lucene/search/spans/TestSpans.java b/src/test/org/apache/lucene/search/spans/TestSpans.javaindex 534915db634..dc0724ba954 100644--- a/src/test/org/apache/lucene/search/spans/TestSpans.java+++ b/src/test/org/apache/lucene/search/spans/TestSpans.java@@ -59,7 +59,7 @@ public class TestSpans extends TestCase {}private void checkHits(Query query, int[] results) throws IOException {- CheckHits.checkHits(query, field, searcher, results, this);+ CheckHits.checkHits(query, field, searcher, results);}public void orderedSlopTest3(int slop, int[] expectedDocs) throws IOException {