Apache Lucene open-source search software
Remove unnecessary assert, fix comment. (#13279)
zhouhui3c8467d3537c
diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene90/blocktree/SegmentTermsEnumFrame.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene90/blocktree/SegmentTermsEnumFrame.javaindex 5c8b9589691..c1552c8ce60 100644--- a/lucene/core/src/java/org/apache/lucene/codecs/lucene90/blocktree/SegmentTermsEnumFrame.java+++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene90/blocktree/SegmentTermsEnumFrame.java@@ -543,7 +543,7 @@ final class SegmentTermsEnumFrame {CompressionAlgorithm compressionAlg = CompressionAlgorithm.NO_COMPRESSION;// Target's prefix matches this block's prefix; we- // scan the entries check if the suffix matches.+ // scan the entries to check if the suffix matches.public SeekStatus scanToTermLeaf(BytesRef target, boolean exactOnly) throws IOException {// if (DEBUG) System.out.println(" scanToTermLeaf: block fp=" + fp + " prefix=" + prefix +@@ -610,7 +610,6 @@ final class SegmentTermsEnumFrame {// would have followed the index to this// sub-block from the start:- assert ste.termExists;fillTerm();// if (DEBUG) System.out.println(" found!");return SeekStatus.FOUND;@@ -729,7 +728,7 @@ final class SegmentTermsEnumFrame {}// Target's prefix matches this block's prefix; we- // scan the entries check if the suffix matches.+ // scan the entries to check if the suffix matches.public SeekStatus scanToTermNonLeaf(BytesRef target, boolean exactOnly) throws IOException {// if (DEBUG) System.out.println(" scanToTermNonLeaf: block fp=" + fp + " prefix=" + prefix +