mirror of https://github.com/apache/lucene.git
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:
parent
b01e4a97b7
commit
2b60bb3cbc
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue