Skip to content

Commit 7de3a24

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 8441855 commit 7de3a24

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

server/src/main/java/org/elasticsearch/common/lucene/search/function/FunctionScoreQuery.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import org.apache.lucene.search.ScorerSupplier;
2222
import org.apache.lucene.search.Weight;
2323
import org.apache.lucene.util.Bits;
24-
import org.elasticsearch.ElasticsearchException;
2524
import org.elasticsearch.common.io.stream.StreamInput;
2625
import org.elasticsearch.common.io.stream.StreamOutput;
2726
import org.elasticsearch.common.io.stream.Writeable;
@@ -448,8 +447,13 @@ public float score() throws IOException {
448447
These scores are invalid for score based {@link org.apache.lucene.search.TopDocsCollector}s.
449448
See {@link org.apache.lucene.search.TopScoreDocCollector} for details.
450449
*/
451-
throw new IllegalArgumentException("function score query returned an invalid score: "
452-
+ finalScore + " for doc: " + docId + "; score must be a non-negative real number");
450+
throw new IllegalArgumentException(
451+
"function score query returned an invalid score: "
452+
+ finalScore
453+
+ " for doc: "
454+
+ docId
455+
+ "; score must be a non-negative real number"
456+
);
453457
}
454458
return finalScore;
455459
}

0 commit comments

Comments
 (0)