diff --git a/src/main/java/org/folio/service/UserService.java b/src/main/java/org/folio/service/UserService.java index 5865bdf4..a2bc6103 100644 --- a/src/main/java/org/folio/service/UserService.java +++ b/src/main/java/org/folio/service/UserService.java @@ -1,11 +1,9 @@ package org.folio.service; -import org.folio.domain.dto.EcsTlr; import org.folio.domain.dto.User; public interface UserService { User createShadowUser(User realUser, String tenantId); User findUser(String userId, String tenantId); - } diff --git a/src/main/java/org/folio/service/impl/EcsTlrServiceImpl.java b/src/main/java/org/folio/service/impl/EcsTlrServiceImpl.java index 7c3dec0e..96347cba 100644 --- a/src/main/java/org/folio/service/impl/EcsTlrServiceImpl.java +++ b/src/main/java/org/folio/service/impl/EcsTlrServiceImpl.java @@ -40,9 +40,8 @@ public Optional get(UUID id) { @Override public EcsTlr create(EcsTlr ecsTlr) { - final String requesterId = ecsTlr.getRequesterId(); log.info("create:: creating ECS TLR {} for instance {} and requester {}", ecsTlr.getId(), - ecsTlr.getInstanceId(), requesterId); + ecsTlr.getInstanceId(), ecsTlr.getRequesterId()); String borrowingTenantId = getBorrowingTenant(ecsTlr); Collection lendingTenantIds = getLendingTenants(ecsTlr); @@ -79,8 +78,8 @@ public boolean delete(UUID requestId) { private String getBorrowingTenant(EcsTlr ecsTlr) { log.info("getBorrowingTenant:: getting borrowing tenant"); - final String borrowingTenantId = tenantService.getBorrowingTenant(ecsTlr).orElseThrow( - () -> new TenantPickingException("Failed to get borrowing tenant")); + final String borrowingTenantId = tenantService.getBorrowingTenant(ecsTlr) + .orElseThrow(() -> new TenantPickingException("Failed to get borrowing tenant")); log.info("getBorrowingTenant:: borrowing tenant: {}", borrowingTenantId); return borrowingTenantId; @@ -130,7 +129,7 @@ private static void updateEcsTlr(EcsTlr ecsTlr, RequestWrapper primaryRequest, .itemId(secondaryRequest.request().getItemId()); log.info("updateEcsTlr:: ECS TLR updated in memory"); - log.debug("updateEcsTlr:: ECS TLR: {}", ecsTlr); + log.debug("updateEcsTlr:: ECS TLR: {}", () -> ecsTlr); } }