Skip to content

Commit

Permalink
clean up constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
sijuv committed Feb 17, 2025
1 parent 327219f commit f97706c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ public void collect(int doc) throws IOException {
terminatedEarly = overallCollectedDocCount >= maxDocsToCollect;
}
if (terminatedEarly) {
throw new EarlyTerminatingCollectorException(maxDocsToCollect, prevReaderCumulativeSize + (doc + 1));
throw new EarlyTerminatingCollectorException(
maxDocsToCollect, prevReaderCumulativeSize + (doc + 1));
}
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,7 @@ static class SearchResult {
private final Object[] result;
final boolean isTerminatedEarly;

public SearchResult(ScoreMode scoreMode, Object[] result) {
this(scoreMode, result, false);
}

public SearchResult(ScoreMode scoreMode, Object[] result, boolean isTerminatedEarly) {
SearchResult(ScoreMode scoreMode, Object[] result, boolean isTerminatedEarly) {
this.scoreMode = scoreMode;
this.result = result;
this.isTerminatedEarly = isTerminatedEarly;
Expand Down

0 comments on commit f97706c

Please sign in to comment.