From 3a228ca91c313990741ef6a537d9f9615a0e0215 Mon Sep 17 00:00:00 2001 From: liamfallon Date: Wed, 22 May 2019 02:38:32 +0000 Subject: Fix name/version regexp in model keys The regular expressions for checking names and versions in policy key names and versions were not expressive enough to restrict all error names and versions. Issue-ID: POLICY-1777 Change-Id: I037eca051f6c7a9f1e7182150d40d8b8d906a75c Signed-off-by: liamfallon --- .../java/org/onap/policy/models/provider/PolicyModelsProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'models-provider/src/main/java') diff --git a/models-provider/src/main/java/org/onap/policy/models/provider/PolicyModelsProvider.java b/models-provider/src/main/java/org/onap/policy/models/provider/PolicyModelsProvider.java index 9b494d1ab..bd28c3238 100644 --- a/models-provider/src/main/java/org/onap/policy/models/provider/PolicyModelsProvider.java +++ b/models-provider/src/main/java/org/onap/policy/models/provider/PolicyModelsProvider.java @@ -232,7 +232,7 @@ public interface PolicyModelsProvider extends AutoCloseable { * Delete legacy operational policy. * * @param policyId ID of the policy. - * @param policyVersion version of the policy, set to null to get the latest policy + * @param policyVersion version of the policy * @return the deleted policy * @throws PfModelException on errors deleting policies */ @@ -274,7 +274,7 @@ public interface PolicyModelsProvider extends AutoCloseable { * Delete legacy guard policy. * * @param policyId ID of the policy. - * @param policyVersion version of the policy, set to null to get the latest policy + * @param policyVersion version of the policy * @return the deleted policy * @throws PfModelException on errors deleting policies */ -- cgit 1.2.3-korg