Skip to content

Commit 68b6772

Browse files
committed
Fixing build issues
Signed-off-by: Kshitij Tandon <tandonks@amazon.com>
1 parent 4c363d5 commit 68b6772

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

server/src/main/java/org/opensearch/search/aggregations/metrics/InternalAvg.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,16 @@ public InternalAvg reduce(List<InternalAggregation> aggregations, ReduceContext
116116
double[] values = (double[]) value;
117117
if (values.length != 2) {
118118
throw new IllegalArgumentException(
119-
"Expected double array with [sum, count] from ScriptedMetric but got array of length " +
120-
values.length
119+
"Expected double array with [sum, count] from ScriptedMetric but got array of length " + values.length
121120
);
122121
}
123122
count += (long) values[1]; // count is at index 1
124123
kahanSummation.add(values[0]); // sum is at index 0
125124
} else {
126125
throw new IllegalArgumentException(
127-
"Expected double array[sum, count] from ScriptedMetric but got [" +
128-
(value == null ? "null" : value.getClass().getName()) + "]"
126+
"Expected double array[sum, count] from ScriptedMetric but got ["
127+
+ (value == null ? "null" : value.getClass().getName())
128+
+ "]"
129129
);
130130
}
131131
} else {

server/src/main/java/org/opensearch/search/aggregations/metrics/InternalValueCount.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,9 @@ public InternalAggregation reduce(List<InternalAggregation> aggregations, Reduce
9393
valueCount += ((Number) value).longValue();
9494
} else {
9595
throw new IllegalArgumentException(
96-
"Expected numeric value from ScriptedMetric aggregation but got [" +
97-
(value == null ? "null" : value.getClass().getName()) + "]"
96+
"Expected numeric value from ScriptedMetric aggregation but got ["
97+
+ (value == null ? "null" : value.getClass().getName())
98+
+ "]"
9899
);
99100
}
100101
} else {

0 commit comments

Comments
 (0)