Skip to content

Commit ebca7e1

Browse files
committed
spotless
Signed-off-by: Anthony Leong <aj.leong623@gmail.com>
1 parent b5e08d8 commit ebca7e1

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

server/src/test/java/org/opensearch/search/aggregations/bucket/missing/MissingAggregatorTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ public void testMatchSparseRangeField() throws IOException {
270270
final int finalDocsMissingAggField = docsMissingAggField;
271271

272272
if (isIndexed) {
273-
// The precompute does not work because only the other field was actually indexed. Therefore, the
274-
// precomputation could not declare whether the field was simply not indexed or if there were
273+
// The precompute does not work because only the other field was actually indexed. Therefore, the
274+
// precomputation could not declare whether the field was simply not indexed or if there were
275275
// actually no values in that field.
276276
testCase(newMatchAllQuery(), builder, writer -> writer.addDocuments(docs), internalMissing -> {
277277
assertEquals(finalDocsMissingAggField, internalMissing.getDocCount());
@@ -364,7 +364,7 @@ public void testMissingParam() throws IOException {
364364

365365
// Determines whether the fields we add to the documents are indexed.
366366
final boolean isIndexed = randomBoolean();
367-
367+
368368
// Having the missing parameter will make the missing aggregator not responsible for any documents, so it will short-circuit
369369
testCase(newMatchAllQuery(), builder, writer -> {
370370
for (int i = 0; i < numDocs; i++) {

server/src/test/java/org/opensearch/search/aggregations/bucket/terms/RareTermsAggregatorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ private <A extends InternalAggregation> A executeTestCase(Query query, List<Long
632632
}
633633
}
634634

635-
// Executes the tests while indexing the values for the field names.
635+
// Executes the tests while indexing the values for the field names.
636636
private <A extends InternalAggregation> A executeTestCaseIndexString(
637637
Query query,
638638
List<Long> dataset,

server/src/test/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregatorTests.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -328,16 +328,9 @@ public void testSimpleMapStringAggregation() throws Exception {
328328
boolean includeDeletedDocumentsInSegment = randomBoolean();
329329
boolean includeDocCountField = randomBoolean();
330330
boolean collectSegmentOrds = randomBoolean();
331-
testSimple(
332-
ADD_SORTED_SET_FIELD_INDEXED,
333-
false,
334-
false,
335-
collectSegmentOrds,
336-
TermsAggregatorFactory.ExecutionMode.MAP,
337-
0
338-
);
331+
testSimple(ADD_SORTED_SET_FIELD_INDEXED, false, false, collectSegmentOrds, TermsAggregatorFactory.ExecutionMode.MAP, 0);
339332
if (includeDeletedDocumentsInSegment == false && includeDocCountField == false) {
340-
return ;
333+
return;
341334
} else {
342335
testSimple(
343336
ADD_SORTED_SET_FIELD_INDEXED,

0 commit comments

Comments
 (0)