Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
johanhaleby committed Dec 6, 2024
1 parent 04e5717 commit ed4497c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ public static Criteria convertFilterToCriteria(String fieldNamePrefix, TimeRepre
Condition<?> conditionToUse = SpecialFilterHandling.resolveSpecialCases(timeRepresentation, scf);
String fieldName = fieldNameOf(fieldNamePrefix, scf.fieldName());
criteria = ConditionToCriteriaConverter.convertConditionToCriteria(fieldName, conditionToUse);
} else if (filter instanceof CompositionFilter) {
CompositionFilter cf = (CompositionFilter) filter;
} else if (filter instanceof CompositionFilter cf) {
Criteria[] composedCriteria = cf.filters().stream().map(f -> FilterConverter.convertFilterToCriteria(fieldNamePrefix, timeRepresentation, f)).toArray(Criteria[]::new);
Criteria c = new Criteria();
switch (cf.operator()) {
Expand Down

0 comments on commit ed4497c

Please sign in to comment.