From 9207d3237c28d8a0f5997b40904678bddf30acb7 Mon Sep 17 00:00:00 2001 From: Jim Ferenczi Date: Mon, 14 Oct 2024 14:16:21 +0100 Subject: [PATCH] spotless --- .../rankdoc/RankDocsQueryBuilderTests.java | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/server/src/test/java/org/elasticsearch/search/retriever/rankdoc/RankDocsQueryBuilderTests.java b/server/src/test/java/org/elasticsearch/search/retriever/rankdoc/RankDocsQueryBuilderTests.java index f1aee5764fba6..b295b78453f93 100644 --- a/server/src/test/java/org/elasticsearch/search/retriever/rankdoc/RankDocsQueryBuilderTests.java +++ b/server/src/test/java/org/elasticsearch/search/retriever/rankdoc/RankDocsQueryBuilderTests.java @@ -199,20 +199,17 @@ public void testRankDocsQueryEarlyTerminate() throws IOException { { // A single rank doc in the last segment RankDoc[] singleRankDoc = new RankDoc[1]; - singleRankDoc[0] = rankDocs[rankDocs.length-1]; + singleRankDoc[0] = rankDocs[rankDocs.length - 1]; RankDocsQuery q = new RankDocsQuery( - reader, - singleRankDoc, - new Query[] { NumericDocValuesField.newSlowExactQuery("active", 1) }, - new String[1], - false + reader, + singleRankDoc, + new Query[] { NumericDocValuesField.newSlowExactQuery("active", 1) }, + new String[1], + false ); var topDocsManager = new TopScoreDocCollectorManager(1, null, 0); var col = searcher.search(q, topDocsManager); - assertThat( - col.totalHits.value, - lessThanOrEqualTo((long) (2 + rankDocs.length)) - ); + assertThat(col.totalHits.value, lessThanOrEqualTo((long) (2 + rankDocs.length))); assertEqualTopDocs(col.scoreDocs, singleRankDoc); } }