summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-validation-lib
diff options
context:
space:
mode:
authorAbhai Singh <Abhai.Singh@amdocs.com>2017-12-28 17:49:51 +0530
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2017-12-31 10:28:36 +0000
commit0c350f1e8a1306a1749a7e46e0bd4ded1c8c64e6 (patch)
treeb94973b945874c3b6112eaab186b67fb068f38e9 /openecomp-be/lib/openecomp-sdc-validation-lib
parent1577328de998d9b921e61ac9940a016ac1bbcecd (diff)
Fix Sonar issues ResourceBaseValidator
Fixed few reported sonar issues. One sonar issue is ignored as it would involve change in method signature of public method Change-Id: Ib0c97ebce5b05dcc0e7dd3d46f25557cc51c31d8 Issue-ID: SDC-343 Signed-off-by: Abhai Singh <Abhai.Singh@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-validation-lib')
-rw-r--r--openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-sdk/src/main/java/org/openecomp/sdc/validation/base/ResourceBaseValidator.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-sdk/src/main/java/org/openecomp/sdc/validation/base/ResourceBaseValidator.java b/openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-sdk/src/main/java/org/openecomp/sdc/validation/base/ResourceBaseValidator.java
index 68c1b74c99..5013283c8f 100644
--- a/openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-sdk/src/main/java/org/openecomp/sdc/validation/base/ResourceBaseValidator.java
+++ b/openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-sdk/src/main/java/org/openecomp/sdc/validation/base/ResourceBaseValidator.java
@@ -34,11 +34,11 @@ import java.util.Objects;
public class ResourceBaseValidator implements Validator {
protected Map<String, ImplementationConfiguration> resourceTypeToImpl = new HashMap<>();
- private static Logger logger = (Logger) LoggerFactory.getLogger(ResourceBaseValidator.class);
+ private static Logger logger = LoggerFactory.getLogger(ResourceBaseValidator.class);
private static final ErrorMessageCode ERROR_CODE_RBV_1 = new ErrorMessageCode("RBV1");
private static final ErrorMessageCode ERROR_CODE_RBV_2 = new ErrorMessageCode("RBV2");
-
+@Override
public void init(Map<String, Object> properties) {
if (MapUtils.isEmpty(properties)) {
return;
@@ -156,8 +156,8 @@ public class ResourceBaseValidator implements Validator {
implementationConfiguration.setImplementationClass(
valueAsMap.get(ConfigConstants.Impl_Class).toString());
if (valueAsMap.containsKey(ConfigConstants.Enable)) {
- implementationConfiguration.setEnable((Boolean.
- valueOf(valueAsMap.get(ConfigConstants.Enable).toString())));
+ implementationConfiguration.setEnable(Boolean.
+ valueOf(valueAsMap.get(ConfigConstants.Enable).toString()));
}
return implementationConfiguration;