lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r784194 - in /lucene/java/trunk/src/test/org/apache/lucene/search: TestDocIdSet.java TestSort.java
Date Fri, 12 Jun 2009 17:00:19 GMT
Author: mikemccand
Date: Fri Jun 12 17:00:19 2009
New Revision: 784194

URL: http://svn.apache.org/viewvc?rev=784194&view=rev
Log:
fix tests to pass on Java 1.4, again

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/search/TestDocIdSet.java
    lucene/java/trunk/src/test/org/apache/lucene/search/TestSort.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/search/TestDocIdSet.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/search/TestDocIdSet.java?rev=784194&r1=784193&r2=784194&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/search/TestDocIdSet.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/search/TestDocIdSet.java Fri Jun 12 17:00:19
2009
@@ -82,9 +82,9 @@
     ArrayList/*<Integer>*/ list = new ArrayList/*<Integer>*/();
     int doc = iter.advance(3);
     if (doc != DocIdSetIterator.NO_MORE_DOCS) {
-      list.add(Integer.valueOf(doc));
+      list.add(new Integer(doc));
       while((doc = iter.nextDoc()) != DocIdSetIterator.NO_MORE_DOCS) {
-        list.add(Integer.valueOf(doc));
+        list.add(new Integer(doc));
       }
     }
 	  

Modified: lucene/java/trunk/src/test/org/apache/lucene/search/TestSort.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/search/TestSort.java?rev=784194&r1=784193&r2=784194&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/search/TestSort.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/search/TestSort.java Fri Jun 12 17:00:19
2009
@@ -1090,7 +1090,7 @@
     return (Searchable) Naming.lookup ("//localhost:" + port + "/SortedSearchable");
   }
 
-  private int port = -1;
+  private static int port = -1;
 
   private void startServer () throws Exception {
     // construct an index



Mime
View raw message