From 76d4114aead59bd992c62d57af244174c73e1b8a Mon Sep 17 00:00:00 2001 From: Matthias Fischer Date: Wed, 17 Jul 2024 13:15:32 +0200 Subject: [PATCH] chore(cleanup): [#734] correct method naming --- .../tractusx/irs/policystore/services/PolicyStoreService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/services/PolicyStoreService.java b/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/services/PolicyStoreService.java index 29eff4b08..cc39b4d4b 100644 --- a/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/services/PolicyStoreService.java +++ b/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/services/PolicyStoreService.java @@ -217,13 +217,13 @@ public List getConfiguredDefaultPolicies() { public Map> getAllStoredPolicies() { final Map> bpnToPolicies = persistence.readAll(); - if (containsNoDefaultPolicyAvailable(bpnToPolicies)) { + if (containsNoDefaultPolicy(bpnToPolicies)) { bpnToPolicies.put("default", allowedPoliciesFromConfig); } return bpnToPolicies; } - private static boolean containsNoDefaultPolicyAvailable(final Map> bpnToPolicies) { + private static boolean containsNoDefaultPolicy(final Map> bpnToPolicies) { return bpnToPolicies.keySet().stream().noneMatch(key -> StringUtils.isEmpty(key) || DEFAULT.equals(key)); }