lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r827527 - /lucene/java/branches/lucene_2_9/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java
Date Tue, 20 Oct 2009 14:24:41 GMT
Author: markrmiller
Date: Tue Oct 20 14:24:41 2009
New Revision: 827527

URL: http://svn.apache.org/viewvc?rev=827527&view=rev
Log:
fix tests to compile with 1.4 - remove autoboxing

Modified:
    lucene/java/branches/lucene_2_9/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java

Modified: lucene/java/branches/lucene_2_9/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_9/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java?rev=827527&r1=827526&r2=827527&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_9/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java
(original)
+++ lucene/java/branches/lucene_2_9/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java
Tue Oct 20 14:24:41 2009
@@ -263,7 +263,7 @@
   
   public void testNumericRangeQuery() throws Exception {
     // doesn't currently highlight, but make sure it doesn't cause exception either
-    query = NumericRangeQuery.newIntRange(NUMERIC_FIELD_NAME, 2, 6, true, true);
+    query = NumericRangeQuery.newIntRange(NUMERIC_FIELD_NAME, new Integer(2), new Integer(6),
true, true);
     searcher = new IndexSearcher(ramDir);
     hits = searcher.search(query);
     int maxNumFragmentsRequired = 2;



Mime
View raw message