diff --git a/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregator.java index 42c29f8498811..1d48850bee122 100644 --- a/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregator.java +++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregator.java @@ -199,7 +199,8 @@ public InternalAggregation[] buildAggregations(long[] owningBucketOrds) throws I reverseMuls, missingOrders, docCount, - aggs); + aggs + ); } CompositeKey lastBucket = num > 0 ? buckets[num - 1].getRawKey() : null; return new InternalAggregation[] { @@ -229,7 +230,8 @@ public InternalAggregation buildEmptyAggregation() { reverseMuls, missingOrders, false, - metadata()); + metadata() + ); } private void finishLeaf() { diff --git a/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/InternalComposite.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/InternalComposite.java index 761bee844762e..2cfd9d508c194 100644 --- a/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/InternalComposite.java +++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/InternalComposite.java @@ -164,7 +164,8 @@ public InternalComposite create(List newBuckets) { reverseMuls, missingOrders, earlyTerminated, - getMetadata()); + getMetadata() + ); } @Override @@ -270,7 +271,8 @@ public InternalAggregation reduce(List aggregations, Reduce reverseMuls, missingOrders, earlyTerminated, - metadata); + metadata + ); } @Override @@ -364,7 +366,8 @@ public static class InternalBucket extends InternalMultiBucketAggregation.Intern List sourceNames, List formats, int[] reverseMuls, - MissingOrder[] missingOrders) throws IOException { + MissingOrder[] missingOrders + ) throws IOException { this.key = new CompositeKey(in); this.docCount = in.readVLong(); this.aggregations = InternalAggregations.readFrom(in); diff --git a/server/src/test/java/org/opensearch/search/aggregations/bucket/composite/InternalCompositeTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/composite/InternalCompositeTests.java index bfa2a93d0ac3c..4121954c1ede2 100644 --- a/server/src/test/java/org/opensearch/search/aggregations/bucket/composite/InternalCompositeTests.java +++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/composite/InternalCompositeTests.java @@ -204,7 +204,8 @@ protected InternalComposite createTestInstance(String name, Map reverseMuls, missingOrders, randomBoolean(), - metadata); + metadata + ); } @Override