Major Sonar fixes in InstanceManagement 16/91916/1
authorr.bogacki <r.bogacki@samsung.com>
Wed, 24 Jul 2019 07:06:26 +0000 (09:06 +0200)
committerr.bogacki <r.bogacki@samsung.com>
Wed, 24 Jul 2019 07:07:20 +0000 (09:07 +0200)
-Removed unnecessary code.
-Removed unused variables.

Issue-ID: SO-2102
Signed-off-by: Robert Bogacki <r.bogacki@samsung.com>
Change-Id: Ie85cb51da959dacc80b61aa9d5bb608b4198a5fb

mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/InstanceManagement.java

index d8a7cb3..ade13e7 100644 (file)
@@ -105,13 +105,9 @@ public class InstanceManagement {
     private Response processCustomWorkflowRequest(String requestJSON, Actions action,
             HashMap<String, String> 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);