pre-review cleanup
This commit is contained in:
parent
c375c66f15
commit
74948737a7
|
@ -188,6 +188,7 @@ public class SearchBuilder implements ISearchBuilder {
|
|||
private void setLocationDistance(SearchParameterMap theParams) {
|
||||
if (myResourceType == Location.class && theParams.containsKey(Location.SP_NEAR_DISTANCE)) {
|
||||
List<List<IQueryParameterType>> paramList = theParams.get(Location.SP_NEAR_DISTANCE);
|
||||
// Set nearDistanceParam on the SearchParameterMap so it's available to the near predicate
|
||||
paramList.stream()
|
||||
.flatMap(List::stream)
|
||||
.findFirst()
|
||||
|
|
|
@ -118,7 +118,6 @@ public class MatchUrlService {
|
|||
paramMap.add(nextParamName, param);
|
||||
} else if (Location.SP_NEAR_DISTANCE.equals(nextParamName)) {
|
||||
QuantityAndListParam nearDistanceAndListParam = (QuantityAndListParam) ParameterUtil.parseQueryParams(myContext, RestSearchParameterTypeEnum.QUANTITY, nextParamName, paramList);
|
||||
// FIXME KHS this needs to be set elsewhere
|
||||
nearDistanceAndListParam.getValuesAsQueryTokens().stream()
|
||||
.map(QuantityOrListParam::getValuesAsQueryTokens)
|
||||
.flatMap(List::stream)
|
||||
|
|
Loading…
Reference in New Issue