aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-model
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-model')
-rw-r--r--catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/operations/NodeTemplateOperation.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/operations/NodeTemplateOperation.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/operations/NodeTemplateOperation.java
index 7bd36eacd1..3e91d74bd1 100644
--- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/operations/NodeTemplateOperation.java
+++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/operations/NodeTemplateOperation.java
@@ -672,13 +672,10 @@ public class NodeTemplateOperation extends BaseOperation {
Map<String, ListCapabilityDataDefinition> capabilities,
ComponentInstanceDataDefinition componentInstance,
MapListCapabilityDataDefinition calculatedCap) {
- if (capabilities != null) {
MapListCapabilityDataDefinition allCalculatedCap =
new MapListCapabilityDataDefinition(calculatedCap);
populateCapability(capabilities, componentInstance, allCalculatedCap);
return allCalculatedCap;
- }
- return null;
}
private void populateCapability(Map<String, ListCapabilityDataDefinition> capabilities,
@@ -702,14 +699,11 @@ public class NodeTemplateOperation extends BaseOperation {
Map<String, ListRequirementDataDefinition> requirements,
ComponentInstanceDataDefinition componentInstance,
MapListRequirementDataDefinition calculatedReqs) {
- if (requirements != null) {
MapListRequirementDataDefinition allCalculatedReq =
new MapListRequirementDataDefinition(calculatedReqs);
populateRequirement(requirements, componentInstance, allCalculatedReq);
return allCalculatedReq;
- }
- return null;
}
private void populateRequirement(Map<String, ListRequirementDataDefinition> requirements,
ComponentInstanceDataDefinition componentInstance,