Skip to content

Commit

Permalink
Fixed group filter parsing in boolean filters. (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
axl8713 authored Jan 24, 2025
1 parent 4686c46 commit c1a6147
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@
@XmlRootElement(name = "AND")
public class AndFilter extends SearchFilter {

/** The Constant serialVersionUID. */
private static final long serialVersionUID = -4055325472578322312L;

private List<SearchFilter> filters = new ArrayList<SearchFilter>();
private List<SearchFilter> filters = new ArrayList<>();

public AndFilter() {}

Expand All @@ -55,7 +54,8 @@ public AndFilter(SearchFilter f1, SearchFilter f2, SearchFilter... other) {
@XmlElement(name = "OR", type = OrFilter.class),
@XmlElement(name = "AND", type = AndFilter.class),
@XmlElement(name = "FIELD", type = FieldFilter.class),
@XmlElement(name = "CATEGORY", type = CategoryFilter.class)
@XmlElement(name = "CATEGORY", type = CategoryFilter.class),
@XmlElement(name = "GROUP", type = GroupFilter.class)
})
public List<SearchFilter> getFilters() {
return filters;
Expand All @@ -76,6 +76,6 @@ public void accept(FilterVisitor visitor) throws BadRequestServiceEx, InternalEr

@Override
public String toString() {
return getClass().getSimpleName() + "[" + filters + '}';
return getClass().getSimpleName() + "[" + filters + ']';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@
@XmlRootElement(name = "OR")
public class OrFilter extends SearchFilter {

/** The Constant serialVersionUID. */
private static final long serialVersionUID = -1319295933578215551L;

private List<SearchFilter> filters = new ArrayList<SearchFilter>();
private List<SearchFilter> filters = new ArrayList<>();

public OrFilter() {}

Expand All @@ -55,7 +54,8 @@ public OrFilter(SearchFilter f1, SearchFilter f2, SearchFilter... other) {
@XmlElement(name = "OR", type = OrFilter.class),
@XmlElement(name = "AND", type = AndFilter.class),
@XmlElement(name = "FIELD", type = FieldFilter.class),
@XmlElement(name = "CATEGORY", type = CategoryFilter.class)
@XmlElement(name = "CATEGORY", type = CategoryFilter.class),
@XmlElement(name = "GROUP", type = GroupFilter.class)
})
public List<SearchFilter> getFilters() {
return filters;
Expand All @@ -76,6 +76,6 @@ public void accept(FilterVisitor visitor) throws BadRequestServiceEx, InternalEr

@Override
public String toString() {
return getClass().getSimpleName() + "[" + filters + '}';
return getClass().getSimpleName() + "[" + filters + ']';
}
}

0 comments on commit c1a6147

Please sign in to comment.