Skip to content

Commit

Permalink
fix(impl): [#199] Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmf committed Mar 28, 2024
1 parent 09925a4 commit f9400dc
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,13 @@ public Map<String, List<PolicyResponse>> 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<String, List<Policy>> 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",
Expand Down

0 comments on commit f9400dc

Please sign in to comment.