fix tests to pass on Java 1.4, again

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@784194 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2009-06-12 17:00:19 +00:00
parent b01e4a97b7
commit 2b60bb3cbc
2 changed files with 3 additions and 3 deletions

View File

@ -82,9 +82,9 @@ public class TestDocIdSet extends LuceneTestCase {
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));
}
}

View File

@ -1090,7 +1090,7 @@ public class TestSort extends LuceneTestCase implements Serializable {
return (Searchable) Naming.lookup ("//localhost:" + port + "/SortedSearchable");
}
private int port = -1;
private static int port = -1;
private void startServer () throws Exception {
// construct an index