Skip to content

Commit

Permalink
mondodb: fix check style
Browse files Browse the repository at this point in the history
  • Loading branch information
imedina committed Dec 12, 2024
1 parent 7943e1b commit e8159f3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ public List<FacetField> convertToDataModelType(Document document) {
Document documentValue = ((List<Document>) entry.getValue()).get(0);
MongoDBQueryUtils.Accumulator accumulator = getAccumulator(documentValue);
switch (accumulator) {
case avg:
case sum:
case avg:
case max:
case min:
case stdDevPop:
Expand Down Expand Up @@ -118,8 +118,8 @@ private MongoDBQueryUtils.Accumulator getAccumulator(Document document) {
// Do nothing
}
}
throw new IllegalArgumentException("No accumulators found in facet document: " + StringUtils.join(document.keySet(), ",")
+ " Valid accumulator functions: " + StringUtils.join(Arrays.asList(count, sum, max, min, avg, stdDevPop, stdDevSamp), ","));
throw new IllegalArgumentException("No accumulators found in facet document: " + StringUtils.join(document.keySet(), ", ")
+ "Valid accumulator functions: " + StringUtils.join(Arrays.asList(count, sum, max, min, avg, stdDevPop, stdDevSamp), ","));
}

@Override
Expand Down

0 comments on commit e8159f3

Please sign in to comment.