From c245ed2fb4502c096554b08ed68837d9b320bfb5 Mon Sep 17 00:00:00 2001 From: zhouhui Date: Fri, 19 Jul 2024 16:12:52 +0800 Subject: [PATCH] Remove useless todo. (#13589) --- .../java/org/apache/lucene/tests/index/PerThreadPKLookup.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/index/PerThreadPKLookup.java b/lucene/test-framework/src/java/org/apache/lucene/tests/index/PerThreadPKLookup.java index c1823e8b708..0a259b7f179 100644 --- a/lucene/test-framework/src/java/org/apache/lucene/tests/index/PerThreadPKLookup.java +++ b/lucene/test-framework/src/java/org/apache/lucene/tests/index/PerThreadPKLookup.java @@ -85,8 +85,6 @@ public class PerThreadPKLookup { if (termsEnums[seg].seekExact(id)) { postingsEnums[seg] = termsEnums[seg].postings(postingsEnums[seg], 0); int docID = -1; - // TODO: Can we get postings' last Doc directly? and return the last one we find. - // TODO: Maybe we should check liveDoc whether null out of the loop? while ((docID = postingsEnums[seg].nextDoc()) != PostingsEnum.NO_MORE_DOCS) { if (liveDocs[seg] == null || liveDocs[seg].get(docID)) { return docBases[seg] + docID;