From db91542f3b768260cdf535e05a3976271a70de23 Mon Sep 17 00:00:00 2001 From: mojahidi Date: Wed, 6 Mar 2019 17:38:43 +0530 Subject: Bug Fix - Requirement and capabilities feature Fixed - bugs Change-Id: I6d5dea6ff1e508caf6580c86c430a0bfcbc23c88 Issue-ID: SDC-2142 Signed-off-by: mojahidi --- .../sdc/be/model/jsontitan/operations/NodeTemplateOperation.java | 6 ------ 1 file changed, 6 deletions(-) (limited to 'catalog-model/src') 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 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 capabilities, @@ -702,14 +699,11 @@ public class NodeTemplateOperation extends BaseOperation { Map 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 requirements, ComponentInstanceDataDefinition componentInstance, -- cgit 1.2.3-korg