From f9400dc0940e8848cd7f439d8293d1c7b977aa63 Mon Sep 17 00:00:00 2001 From: Matthias Fischer Date: Thu, 28 Mar 2024 04:59:31 +0100 Subject: [PATCH] fix(impl): [#199] Format code --- .../controllers/PolicyStoreController.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/controllers/PolicyStoreController.java b/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/controllers/PolicyStoreController.java index 89deebaf71..0100a59b22 100644 --- a/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/controllers/PolicyStoreController.java +++ b/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/controllers/PolicyStoreController.java @@ -171,12 +171,13 @@ public Map> getPolicies( // "Please use parameter 'businessPartnerNumbers' instead"); } - return service.getPolicies(businessPartnerNumbers) - .entrySet() - .stream() - .map(entry -> new AbstractMap.SimpleEntry<>(entry.getKey(), - entry.getValue().stream().map(PolicyResponse::fromPolicy).toList())) - .collect(Collectors.toMap(AbstractMap.SimpleEntry::getKey, AbstractMap.SimpleEntry::getValue)); + final Map> policies = service.getPolicies(businessPartnerNumbers); + + return policies.entrySet() + .stream() + .map(entry -> new AbstractMap.SimpleEntry<>(entry.getKey(), + entry.getValue().stream().map(PolicyResponse::fromPolicy).toList())) + .collect(Collectors.toMap(AbstractMap.SimpleEntry::getKey, AbstractMap.SimpleEntry::getValue)); } @Operation(operationId = "deleteAllowedPolicy",