From 5cf2ddb669f1b30ae68ac7d81136b7bc2279290b Mon Sep 17 00:00:00 2001 From: Ramanjaneya-Huawei Date: Tue, 17 Oct 2017 15:46:05 +0530 Subject: Replace type specification with operator ("<>") Change-Id: I1e4ef70fbce846b9f5ea3527d534fc413fbda272 Issue-id: SO-224 Signed-off-by: Ramanjaneya-Huawei --- .../java/org/openecomp/mso/apihandlerinfra/TasksHandler.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'mso-api-handlers') diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/TasksHandler.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/TasksHandler.java index 1e8bea0c55..92e3e5b078 100644 --- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/TasksHandler.java +++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/TasksHandler.java @@ -86,7 +86,7 @@ public class TasksHandler { // Prepare the query string to /task interface TaskVariables tv = new TaskVariables(); - List tvvList = new ArrayList(); + List tvvList = new ArrayList<>(); if (originalRequestId != null) { TaskVariableValue tvv = new TaskVariableValue(); @@ -168,7 +168,7 @@ public class TasksHandler { return resp; } TasksGetResponse trr = new TasksGetResponse(); - List taskList = new ArrayList(); + List taskList = new ArrayList<>(); ResponseHandler respHandler = new ResponseHandler (response, requestClient.getType ()); int bpelStatus = respHandler.getStatus (); @@ -250,7 +250,6 @@ public class TasksHandler { msoLogger.recordAuditEvent (startTime, MsoLogger.StatusCode.COMPLETE, MsoLogger.ResponseCode.Suc, "Successful"); responseBack = Response.status (HttpStatus.SC_ACCEPTED).entity (jsonResponse).build (); - // msoLogger.debug ("End of the transaction, the final response is: " + (String) response.getEntity ()); return responseBack; } @@ -261,9 +260,9 @@ public class TasksHandler { // Makes a GET call to Camunda to get variables for this task private TaskList getTaskInfo(String taskId) throws Exception { - TaskList taskList = null; + TaskList taskList; String getRequestUrl = requestUrl + taskId + "/variables"; - HttpResponse getResponse = null; + HttpResponse getResponse; long subStartTime = System.currentTimeMillis(); RequestClient requestClient = RequestClientFactory.getRequestClient (getRequestUrl, MsoPropertiesUtils.loadMsoProperties ()); -- cgit 1.2.3-korg