remove warning

This commit is contained in:
Andrea Cavalli 2021-07-28 22:18:33 +02:00
parent e738eda331
commit db54773cda

View File

@ -49,9 +49,6 @@ class TopDocsSearcher {
collector = TopScoreDocCollector.create(limit, after, totalHitsThreshold);
}
} else {
if (!computeScores) {
throw new IllegalArgumentException("ComputeScores must be true if sort is set");
}
if (after == null) {
collector = (TopDocsCollector<ScoreDoc>) (TopDocsCollector) TopFieldCollector.create(luceneSort, limit, totalHitsThreshold);
} else if (after instanceof FieldDoc afterFieldDoc) {