aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-server/src/main
diff options
context:
space:
mode:
authorYuanHu <yuan.hu1@zte.com.cn>2018-04-12 15:22:54 +0800
committerYuanHu <yuan.hu1@zte.com.cn>2018-04-12 15:26:34 +0800
commit41e5e22612921ddd7bc58e6371dc1ed7df7b7788 (patch)
tree819559964e5c1201d7ff8378553ec4f2b9ca5eb9 /sdc-workflow-designer-server/src/main
parent59547f49e965167c8fd1a4bf78ca6d300a4c37ad (diff)
Fix Nexus IQ issues.
Change the 'velocity' plugin in order to fix some Nexus IQ issues. Code optimization Issue-ID: SDC-1211 Change-Id: I0c0f02a5e12330c73fc7d96dfed9c88f84f1083f Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
Diffstat (limited to 'sdc-workflow-designer-server/src/main')
-rw-r--r--sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/CategoryData.java15
-rw-r--r--sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivityDisplayInfo.java5
2 files changed, 18 insertions, 2 deletions
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/CategoryData.java b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/CategoryData.java
index bd99ca46..1df2c2b1 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/CategoryData.java
+++ b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/CategoryData.java
@@ -18,6 +18,21 @@ public class CategoryData {
private I18nString displayName;
private boolean collapse;
+
+ /**
+ *
+ */
+ public CategoryData() {
+ super();
+ }
+
+ /**
+ * @param displayName
+ */
+ public CategoryData(I18nString displayName) {
+ super();
+ this.displayName = displayName;
+ }
/**
* @return the displayName
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivityDisplayInfo.java b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivityDisplayInfo.java
index 83a77953..5c96cea8 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivityDisplayInfo.java
+++ b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivityDisplayInfo.java
@@ -11,15 +11,16 @@
*/
package org.onap.sdc.workflowdesigner.resources.entity;
+import java.util.HashMap;
import java.util.Map;
/**
*
*/
public class ExtActivityDisplayInfo {
- private Map<String, NodeCategory> nodes;
+ private Map<String, NodeCategory> nodes = new HashMap<>();
- private Map<String, CategoryData> categoryData;
+ private Map<String, CategoryData> categoryData = new HashMap<>();
/**
* @return the nodes