Skip to content

Apache Lucene open-source search software

Remove unused parameter in TopFieldCollecter.countHit() (#15150)

gaobinlongf39e64429a71
diff --git a/lucene/core/src/java/org/apache/lucene/search/TopFieldCollector.java b/lucene/core/src/java/org/apache/lucene/search/TopFieldCollector.java
index 568ebf8cf01..7b1dabb9c12 100644
--- a/lucene/core/src/java/org/apache/lucene/search/TopFieldCollector.java
+++ b/lucene/core/src/java/org/apache/lucene/search/TopFieldCollector.java
@@ -70,7 +70,7 @@ public abstract class TopFieldCollector extends TopDocsCollector<Entry> {
}
}
- void countHit(int doc) throws IOException {
+ void countHit() throws IOException {
int hitCountSoFar = ++totalHits;
if (minScoreAcc != null && (hitCountSoFar & minScoreAcc.modInterval) == 0) {
@@ -197,7 +197,7 @@ public abstract class TopFieldCollector extends TopDocsCollector<Entry> {
@Override
public void collect(int doc) throws IOException {
- countHit(doc);
+ countHit();
if (queueFull) {
if (thresholdCheck(doc)) {
return;
@@ -262,7 +262,7 @@ public abstract class TopFieldCollector extends TopDocsCollector<Entry> {
@Override
public void collect(int doc) throws IOException {
- countHit(doc);
+ countHit();
if (queueFull) {
if (thresholdCheck(doc)) {
return;