From c15ef65197789965734fb3aa90e9ea50bda05045 Mon Sep 17 00:00:00 2001 From: shrikantawachar Date: Fri, 10 Aug 2018 16:14:56 +0530 Subject: Inconsistent behavior in license model xmls Removing toggle and fix for Inconsistent behavior in license model xmls Change-Id: I2fd032f25afbdcc17547224beaecf626ed6322bb Issue-ID: SDC-1625 Signed-off-by: shrikantawachar --- .../sdc/healing/healers/ManufacturerReferenceNumberHealer.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'openecomp-be/lib/openecomp-healing-lib') diff --git a/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java/org/openecomp/sdc/healing/healers/ManufacturerReferenceNumberHealer.java b/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java/org/openecomp/sdc/healing/healers/ManufacturerReferenceNumberHealer.java index 237e4bf55b..4bb5bc865a 100644 --- a/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java/org/openecomp/sdc/healing/healers/ManufacturerReferenceNumberHealer.java +++ b/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java/org/openecomp/sdc/healing/healers/ManufacturerReferenceNumberHealer.java @@ -32,7 +32,7 @@ import java.util.Set; public class ManufacturerReferenceNumberHealer implements Healer { - private static final String manufacturerReferenceNumber = "MRN"; + private static final String MANUFACTURER_REFERENCE_NUMBER = "MRN"; private VendorLicenseFacade vendorLicenseFacade = VendorLicenseFacadeFactory.getInstance() .createInterface(); private static final FeatureGroupDao featureGroupDao = @@ -64,7 +64,7 @@ public class ManufacturerReferenceNumberHealer implements Healer { entitlementPoolEntity.setManufacturerReferenceNumber(getMRN(itemId, version, referencingFeatureGroup)); } else { - entitlementPoolEntity.setManufacturerReferenceNumber(manufacturerReferenceNumber); + entitlementPoolEntity.setManufacturerReferenceNumber(MANUFACTURER_REFERENCE_NUMBER); } vendorLicenseFacade.updateEntitlementPool(entitlementPoolEntity); } @@ -80,7 +80,7 @@ public class ManufacturerReferenceNumberHealer implements Healer { licenseKeyGroupEntity.setManufacturerReferenceNumber(getMRN(itemId, version, referencingFeatureGroup)); } else { - licenseKeyGroupEntity.setManufacturerReferenceNumber(manufacturerReferenceNumber); + licenseKeyGroupEntity.setManufacturerReferenceNumber(MANUFACTURER_REFERENCE_NUMBER); } vendorLicenseFacade.updateLicenseKeyGroup(licenseKeyGroupEntity); } @@ -99,7 +99,7 @@ public class ManufacturerReferenceNumberHealer implements Healer { (itemId, version); for (FeatureGroupEntity featureGroupEntity : featureGroupEntities) { - featureGroupEntity.setManufacturerReferenceNumber(""); + featureGroupEntity.setManufacturerReferenceNumber(null); featureGroupDao.update(featureGroupEntity); } } -- cgit 1.2.3-korg