From 79ae648af5bd7d525132bf0efc33dc24076ab207 Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Thu, 22 Jun 2006 17:48:25 +0000 Subject: [PATCH] syntax change for ecj compilation: LUCENE-611 git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@416431 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 6 +++--- .../apache/lucene/search/TestConstantScoreRangeQuery.java | 8 +++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 9db27f4ee75..4e2bc41c560 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -52,9 +52,9 @@ Bug fixes 8. LUCENE-607: ParallelReader's TermEnum fails to advance properly to new 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) Optimizations diff --git a/src/test/org/apache/lucene/search/TestConstantScoreRangeQuery.java b/src/test/org/apache/lucene/search/TestConstantScoreRangeQuery.java index 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();