From 5ed3d4d047f8e455d6a80cc8b9b3f91a5f2459cd Mon Sep 17 00:00:00 2001 From: JulienBe Date: Wed, 9 Sep 2020 12:46:42 +0200 Subject: Create / Update Entitlement Pool - Support Type Field Setting Universal as the default EntitlementPoolType if none is provided to the api Issue-ID: SDC-2820 Signed-off-by: JulienBe Change-Id: I64f90e37f8969488f7453aa53543b566281f2a37 --- .../sdc/vendorlicense/dao/types/EntitlementPoolType.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'openecomp-be/lib') diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/main/java/org/openecomp/sdc/vendorlicense/dao/types/EntitlementPoolType.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/main/java/org/openecomp/sdc/vendorlicense/dao/types/EntitlementPoolType.java index 3b66fab110..1a851a54ac 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/main/java/org/openecomp/sdc/vendorlicense/dao/types/EntitlementPoolType.java +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/main/java/org/openecomp/sdc/vendorlicense/dao/types/EntitlementPoolType.java @@ -26,10 +26,6 @@ public enum EntitlementPoolType { One_Time; public static EntitlementPoolType permissiveValueOf(String name) { - if (name == null){ - return null; - } else { - return EntitlementPoolType.valueOf(name); - } + return name == null ? Universal : EntitlementPoolType.valueOf(name); } -} +} \ No newline at end of file -- cgit 1.2.3-korg