Cleaned up Sonar issues in AuditStackServiceData 44/78844/1
authorr.bogacki <r.bogacki@samsung.com>
Wed, 20 Feb 2019 14:03:48 +0000 (15:03 +0100)
committerr.bogacki <r.bogacki@samsung.com>
Wed, 20 Feb 2019 14:04:26 +0000 (15:04 +0100)
Removed unnecessary imports.
Removed unnecessary cast to "String".

Change-Id: I8b14b0f53860edb656b38914941c44003a625037
Issue-ID: SO-1537
Signed-off-by: Robert Bogacki <r.bogacki@samsung.com>
adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/audit/AuditStackServiceData.java

index ffbe1b4..d1f952c 100644 (file)
@@ -4,6 +4,8 @@
  * ================================================================================
  * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
+ * Modifications Copyright (c) 2019 Samsung
+ * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -20,7 +22,6 @@
 
 package org.onap.so.adapters.audit;
 
-import java.util.Collections;
 
 import org.camunda.bpm.client.task.ExternalTask;
 import org.camunda.bpm.client.task.ExternalTaskService;
@@ -82,7 +83,7 @@ public class AuditStackServiceData {
                
        }
        private void setupMDC(ExternalTask externalTask) {
-               String msoRequestId = (String)externalTask.getVariable("mso-request-id");
+               String msoRequestId = externalTask.getVariable("mso-request-id");
                if(msoRequestId != null && !msoRequestId.isEmpty())
                        MDC.put(ONAPLogConstants.MDCs.REQUEST_ID, msoRequestId);
        }