From eda164ba07d6c97adfd0fe411b2e6c3ee600ea76 Mon Sep 17 00:00:00 2001 From: Mukhiddin Yusupov Date: Tue, 2 Jul 2024 19:40:44 +0500 Subject: [PATCH] MSEARCH-785: refactor --- .../folio/search/controller/SearchConsortiumController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/folio/search/controller/SearchConsortiumController.java b/src/main/java/org/folio/search/controller/SearchConsortiumController.java index e3b690dbb..2869b0bac 100644 --- a/src/main/java/org/folio/search/controller/SearchConsortiumController.java +++ b/src/main/java/org/folio/search/controller/SearchConsortiumController.java @@ -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; @@ -160,7 +160,7 @@ public ResponseEntity 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); } @@ -174,7 +174,7 @@ public ResponseEntity 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); }