From e05dd0482c0df6a21198697aa298fbdeb7c40822 Mon Sep 17 00:00:00 2001 From: Lukasz Muszkieta Date: Thu, 4 Jul 2019 12:59:01 +0200 Subject: remove unneeded code Change-Id: Ib7c692b2a7fd8bc5f40d6a4acba504948cc7fc1b Issue-ID: SO-729 Signed-off-by: Lukasz Muszkieta --- .../workflow/tasks/WorkflowAction.java | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'bpmn/so-bpmn-tasks/src/main/java/org') diff --git a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowAction.java b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowAction.java index e3a943214d..89030d52dc 100644 --- a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowAction.java +++ b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowAction.java @@ -319,8 +319,7 @@ public class WorkflowAction { cloudOwner, serviceType); } flowsToExecute = buildExecuteBuildingBlockList(orchFlows, resourceCounter, requestId, apiVersion, - resourceId, resourceType, requestAction, aLaCarte, vnfType, workflowResourceIds, - requestDetails); + resourceId, requestAction, aLaCarte, vnfType, workflowResourceIds, requestDetails); if (!resourceCounter.stream().filter(x -> WorkflowType.NETWORKCOLLECTION == x.getResourceType()) .collect(Collectors.toList()).isEmpty()) { logger.info("Sorting for Vlan Tagging"); @@ -445,9 +444,8 @@ public class WorkflowAction { protected List getConfigBuildingBlocks(ConfigBuildingBlocksDataObject dataObj) { List flowsToExecuteConfigs = new ArrayList<>(); - List result = new ArrayList<>(dataObj.getOrchFlows()); - result = dataObj.getOrchFlows().stream().filter(item -> item.getFlowName().contains(FABRIC_CONFIGURATION)) - .collect(Collectors.toList()); + List result = dataObj.getOrchFlows().stream() + .filter(item -> item.getFlowName().contains(FABRIC_CONFIGURATION)).collect(Collectors.toList()); String vnfId = dataObj.getWorkflowResourceIds().getVnfId(); String vfModuleId = dataObj.getWorkflowResourceIds().getVfModuleId(); @@ -647,7 +645,7 @@ public class WorkflowAction { RelatedInstance relatedLocalNetwork = bbInputSetupUtils.getRelatedInstanceByType(sIRequest.getRequestDetails(), ModelType.network); if (relatedVpnBinding != null && relatedLocalNetwork != null) { - traverseVrfConfiguration(execution, aaiResourceIds, resourceCounter, service, relatedVpnBinding, + traverseVrfConfiguration(aaiResourceIds, resourceCounter, service, relatedVpnBinding, relatedLocalNetwork); } else { traverseNetworkCollection(execution, resourceCounter, service); @@ -655,10 +653,10 @@ public class WorkflowAction { } } - protected void traverseVrfConfiguration(DelegateExecution execution, - List> aaiResourceIds, List resourceCounter, - org.onap.so.db.catalog.beans.Service service, RelatedInstance relatedVpnBinding, - RelatedInstance relatedLocalNetwork) throws VrfBondingServiceException, JsonProcessingException { + protected void traverseVrfConfiguration(List> aaiResourceIds, + List resourceCounter, org.onap.so.db.catalog.beans.Service service, + RelatedInstance relatedVpnBinding, RelatedInstance relatedLocalNetwork) + throws VrfBondingServiceException, JsonProcessingException { org.onap.aai.domain.yang.L3Network aaiLocalNetwork = bbInputSetupUtils.getAAIL3Network(relatedLocalNetwork.getInstanceId()); vrfValidation.vrfServiceValidation(service); @@ -1277,8 +1275,8 @@ public class WorkflowAction { protected List buildExecuteBuildingBlockList(List orchFlows, List resourceCounter, String requestId, String apiVersion, String resourceId, - WorkflowType resourceType, String requestAction, boolean aLaCarte, String vnfType, - WorkflowResourceIds workflowResourceIds, RequestDetails requestDetails) { + String requestAction, boolean aLaCarte, String vnfType, WorkflowResourceIds workflowResourceIds, + RequestDetails requestDetails) { List flowsToExecute = new ArrayList<>(); for (OrchestrationFlow orchFlow : orchFlows) { if (orchFlow.getFlowName().contains(SERVICE)) { -- cgit 1.2.3-korg