aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbhai Singh <Abhai.Singh@amdocs.com>2018-01-03 19:32:13 +0530
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-01-04 10:04:25 +0000
commit11848a9de277b2b99ad369cb6ae7ed66611d4eef (patch)
treefa06934ea47b92b3e982cbc90e0b40abf299ca38
parent1dad5895485bbb1eb516a309cbb2b0075068e9b0 (diff)
Fix Sonar issues- ElementToProcessConvertor
Fixed reported sonar issue Change-Id: I631710a9421e34cf7c26a9316e2e3271bf44f587 Issue-ID: SDC-343 Signed-off-by: Abhai Singh <Abhai.Singh@amdocs.com>
-rw-r--r--openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/convertor/ElementToProcessConvertor.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/convertor/ElementToProcessConvertor.java b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/convertor/ElementToProcessConvertor.java
index 5d3ebc32ad..0e5ff4aaee 100644
--- a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/convertor/ElementToProcessConvertor.java
+++ b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/convertor/ElementToProcessConvertor.java
@@ -12,6 +12,11 @@ import java.nio.ByteBuffer;
public class ElementToProcessConvertor extends ElementConvertor<ProcessEntity> {
+ public static final String NAME = "name";
+ public static final String ARTIFACT_NAME = "artifactName";
+ public static final String DESCRIPTION = "description";
+ public static final String PROCESS_TYPE = "processType";
+
@Override
public ProcessEntity convert(Element element) {
if (element == null) {
@@ -35,7 +40,6 @@ public class ElementToProcessConvertor extends ElementConvertor<ProcessEntity> {
return processEntity;
}
-
public void mapInfoToProcessEntity(ProcessEntity processEntity, Info info) {
processEntity.setName(info.getProperty(NAME));
processEntity.setArtifactName(info.getProperty(ARTIFACT_NAME));
@@ -44,10 +48,4 @@ public class ElementToProcessConvertor extends ElementConvertor<ProcessEntity> {
(PROCESS_TYPE) != null ? ProcessType.valueOf(info.getProperty
(PROCESS_TYPE)) : null);
}
-
-
- public static final String NAME = "name";
- public static final String ARTIFACT_NAME = "artifactName";
- public static final String DESCRIPTION = "description";
- public static final String PROCESS_TYPE = "processType";
}