diff --git a/src/main/java/org/folio/inventory/resources/TenantItems.java b/src/main/java/org/folio/inventory/resources/TenantItems.java index 4714ce3b0..f129d9cdb 100644 --- a/src/main/java/org/folio/inventory/resources/TenantItems.java +++ b/src/main/java/org/folio/inventory/resources/TenantItems.java @@ -67,7 +67,7 @@ private void getItemsFromTenants(RoutingContext routingContext) { .thenApply(v -> getItemsFutures.stream() .map(CompletableFuture::join) .flatMap(List::stream) - .collect(toList())) + .toList()) .thenApply(this::constructResponse) .thenAccept(jsonObject -> JsonResponse.success(routingContext.response(), jsonObject)); }