aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-healing-lib
diff options
context:
space:
mode:
authorshrikantawachar <shrikant.awachar@amdocs.com>2018-08-10 16:14:56 +0530
committershrikantawachar <shrikant.awachar@amdocs.com>2018-08-10 19:05:17 +0530
commitc15ef65197789965734fb3aa90e9ea50bda05045 (patch)
tree83d4b26b9926b0c43261f952b90b40c8008af4d5 /openecomp-be/lib/openecomp-healing-lib
parent7e0f45ab7839fda19459f790e0384c3a6c98e2bf (diff)
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 <shrikant.awachar@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-healing-lib')
-rw-r--r--openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java/org/openecomp/sdc/healing/healers/ManufacturerReferenceNumberHealer.java8
1 files changed, 4 insertions, 4 deletions
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);
}
}