From ac002e9a6981d2f8632cfc143050c478d7138a5d Mon Sep 17 00:00:00 2001 From: "r.bogacki" Date: Wed, 24 Jul 2019 09:06:26 +0200 Subject: Major Sonar fixes in InstanceManagement -Removed unnecessary code. -Removed unused variables. Issue-ID: SO-2102 Signed-off-by: Robert Bogacki Change-Id: Ie85cb51da959dacc80b61aa9d5bb608b4198a5fb --- .../main/java/org/onap/so/apihandlerinfra/InstanceManagement.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'mso-api-handlers/mso-api-handler-infra/src') diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/InstanceManagement.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/InstanceManagement.java index d8a7cb3f5d..ade13e7b57 100644 --- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/InstanceManagement.java +++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/InstanceManagement.java @@ -105,13 +105,9 @@ public class InstanceManagement { private Response processCustomWorkflowRequest(String requestJSON, Actions action, HashMap instanceIdMap, String version, String requestId, ContainerRequestContext requestContext) throws ApiException { - String serviceInstanceId = null; - if (instanceIdMap != null) { - serviceInstanceId = instanceIdMap.get("serviceInstanceId"); - } + String serviceInstanceId; Boolean aLaCarte = true; - long startTime = System.currentTimeMillis(); - ServiceInstancesRequest sir = null; + ServiceInstancesRequest sir; String apiVersion = version.substring(1); String requestUri = requestHandlerUtils.getRequestUri(requestContext, uriPrefix); -- cgit 1.2.3-korg