Skip to content

Commit b4a4128

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

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

server/src/main/java/org/opensearch/search/aggregations/bucket/terms/MapStringTermsAggregator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ protected boolean tryPrecomputeAggregationForLeaf(LeafReaderContext ctx) throws
176176
// Custom scripts cannot be supported because when the aggregation is returned, parts of the custom
177177
// script are not included. See test 'org.opensearch.painless.\
178178
// LangPainlessClientYamlTestSuiteIT.test {yaml=painless/100_terms_agg/String Value Script with doc notation}'
179-
// for more details on why it cannot be supported.
179+
// for more details on why it cannot be supported.
180180
if (config != null && config.script() != null) {
181181
return false;
182182
}

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ public void testMatchAllDocs() throws IOException {
170170
StringRareTerms.Bucket bucket = (StringRareTerms.Bucket) agg.getBuckets().get(0);
171171
assertThat(bucket.getKeyAsString(), equalTo("1"));
172172
assertThat(bucket.getDocCount(), equalTo(1L));
173-
},
174-
true, 0);
173+
}, true, 0);
175174
}
176175

177176
public void testManyDocsOneRare() throws IOException {
@@ -296,8 +295,7 @@ public void testEmbeddedMaxAgg() throws IOException {
296295
assertThat(children.asList().size(), equalTo(1));
297296
assertThat(children.asList().get(0).getName(), equalTo("the_max"));
298297
assertThat(((Max) (children.asList().get(0))).getValue(), equalTo(1.0));
299-
},
300-
true, dataset.size());
298+
}, true, dataset.size());
301299
}
302300

303301
public void testEmpty() throws IOException {

0 commit comments

Comments
 (0)