Skip to content

Commit

Permalink
appeases the java type system demons
Browse files Browse the repository at this point in the history
  • Loading branch information
awildturtok committed Mar 14, 2023
1 parent 3e2e9d0 commit 340824c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ public static List<String> extractKeywords(FrontendValue value) {
/**
* For a {@link SelectFilter} collect all relevant {@link TrieSearch}.
*/
public List<TrieSearch<FrontendValue>> getSearchesFor(Searchable filter) {
return filter.getSearchReferences().stream()
public List<TrieSearch<FrontendValue>> getSearchesFor(Searchable<?> searchable) {
return searchable.getSearchReferences().stream()
.map(searchCache::get)
.filter(Objects::nonNull)
.collect(Collectors.toList());
}

public long getTotal(Searchable filter) {
return totals.getOrDefault(filter, 0);
public long getTotal(Searchable<?> searchable) {
return totals.getOrDefault(searchable, 0);
}


Expand Down

0 comments on commit 340824c

Please sign in to comment.