Skip to content

Commit

Permalink
MSEARCH-785: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mukhiddin-yusuf committed Jul 2, 2024
1 parent b197052 commit eda164b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import static org.folio.search.utils.SearchUtils.INSTANCE_HOLDING_FIELD_NAME;
import static org.folio.search.utils.SearchUtils.INSTANCE_ITEM_FIELD_NAME;

import com.google.common.collect.Sets;
import java.util.HashSet;
import java.util.UUID;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
Expand Down Expand Up @@ -160,7 +160,7 @@ public ResponseEntity<ConsortiumHoldingCollection> fetchConsortiumBatchHoldings(
.ok(new ConsortiumHoldingCollection());
}

var result = searchService.fetchConsortiumBatchHoldings(tenant, Sets.newHashSet(batchIdsDto.getIds()));
var result = searchService.fetchConsortiumBatchHoldings(tenant, new HashSet<>(batchIdsDto.getIds()));
return ResponseEntity.ok(result);
}

Expand All @@ -174,7 +174,7 @@ public ResponseEntity<ConsortiumItemCollection> fetchConsortiumBatchItems(String

var tenant = verifyAndGetTenant(tenantHeader);

var result = searchService.fetchConsortiumBatchItems(tenant, Sets.newHashSet(batchIdsDto.getIds()));
var result = searchService.fetchConsortiumBatchItems(tenant, new HashSet<>(batchIdsDto.getIds()));
return ResponseEntity.ok(result);
}

Expand Down

0 comments on commit eda164b

Please sign in to comment.