Apache Solr open-source search software
syntax change for ecj compilation: LUCENE-611
Yonik Seeley79ae648af5bd
diff --git a/CHANGES.txt b/CHANGES.txtindex 9db27f4ee75..4e2bc41c560 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -52,9 +52,9 @@ Bug fixes8. LUCENE-607: ParallelReader's TermEnum fails to advance properly tonew fields (Chuck Williams, Christian Kohlschuetter via Yonik Seeley)- 9. LUCENE-610: Simple syntax change to allow compilation with ecj :- disambiguate inner class scorer's use of doc() in BooleanScorer2.- (DM Smith via Yonik Seeley)+ 9. LUCENE-610,LUCENE-611: Simple syntax changes to allow compilation with ecj:+ disambiguate inner class scorer's use of doc() in BooleanScorer2,+ other test code changes. (DM Smith via Yonik Seeley)Optimizationsdiff --git a/src/test/org/apache/lucene/search/TestConstantScoreRangeQuery.java b/src/test/org/apache/lucene/search/TestConstantScoreRangeQuery.javaindex bc2f6255194..7b40cbf9ef2 100644--- a/src/test/org/apache/lucene/search/TestConstantScoreRangeQuery.java+++ b/src/test/org/apache/lucene/search/TestConstantScoreRangeQuery.java@@ -27,6 +27,8 @@ import org.apache.lucene.store.RAMDirectory;import java.io.IOException;+import junit.framework.Assert;+public class TestConstantScoreRangeQuery extends BaseTestRangeFilter {/** threshold for comparing floats */@@ -44,7 +46,11 @@ public class TestConstantScoreRangeQuery extends BaseTestRangeFilter {void assertEquals(String m, float e, float a) {assertEquals(m, e, a, SCORE_COMP_THRESH);}-++ static public void assertEquals(String m, int e, int a) {+ Assert.assertEquals(m, e, a);+ }+public void setUp() throws Exception {super.setUp();