LUCENE-3314: disable check to prevent false fails and expand javadocs

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1201393 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2011-11-13 02:12:56 +00:00
parent 82c51029f8
commit 2cdf3fa14d
3 changed files with 7 additions and 3 deletions

View File

@ -117,7 +117,9 @@ public abstract class TermsEnum {
/** Increments the enumeration to the next term.
* Returns the resulting term, or null if the end was
* hit (which means the enum is unpositioned). The
* returned BytesRef may be re-used across calls to next. */
* returned BytesRef may be re-used across calls to next.
* After this method returns null, do not call it again:
* the results are undefined. */
public abstract BytesRef next() throws IOException;
/** Returns current term. Do not call this when the enum

View File

@ -408,7 +408,8 @@ public class TestNumericRangeQuery32 extends LuceneTestCase {
}
last = new BytesRef(cur);
}
assertNull(termEnum.next());
// LUCENE-3314: the results after next() already returned null are undefined,
// assertNull(termEnum.next());
return count;
}

View File

@ -428,7 +428,8 @@ public class TestNumericRangeQuery64 extends LuceneTestCase {
}
last = new BytesRef(cur);
}
assertNull(termEnum.next());
// LUCENE-3314: the results after next() already returned null are undefined,
// assertNull(termEnum.next());
return count;
}