LUCENE-8075: Removed unnecessary null check in core/src/java/org/apache/lucene/codecs/blocktree/IntersectTermsEnum.java.

Closes #286

Signed-off-by: Adrien Grand <jpountz@gmail.com>
This commit is contained in:
Pulak Ghosh 2017-12-06 12:17:05 +05:30 committed by Adrien Grand
parent 838c604b76
commit 2432bdebe3
2 changed files with 5 additions and 5 deletions

View File

@ -137,6 +137,9 @@ Other
* LUCENE-8106: Add script (reproduceJenkinsFailures.py) to attempt to reproduce
failing tests from a Jenkins log. (Steve Rowe)
* LUCENE-8075: Removed unnecessary null check in IntersectTermsEnum.
(Pulak Ghosh via Adrien Grand)
======================= Lucene 7.2.0 =======================
API Changes

View File

@ -103,11 +103,8 @@ final class IntersectTermsEnum extends TermsEnum {
arcs[arcIdx] = new FST.Arc<>();
}
if (fr.index == null) {
fstReader = null;
} else {
fstReader = fr.index.getBytesReader();
}
fstReader = fr.index.getBytesReader();
// TODO: if the automaton is "smallish" we really
// should use the terms index to seek at least to