From c49835e6f8ced1dc5461d5e9a8a4f9cd798e867d Mon Sep 17 00:00:00 2001 From: rama-huawei Date: Tue, 26 Sep 2017 18:05:04 +0530 Subject: Removed useless assignment to variables Issue-Id:SO-118 Change-Id: I38f63be63f1ee3464ea16107d4b5c152dd4b1410 Signed-off-by: rama-huawei --- .../src/main/java/org/openecomp/mso/apihandlerinfra/Messages.java | 2 +- .../org/openecomp/mso/apihandlerinfra/NetworkInfoHandler.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'mso-api-handlers/mso-api-handler-infra') diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/Messages.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/Messages.java index 0f39ad07b6..911808388f 100644 --- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/Messages.java +++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/Messages.java @@ -28,7 +28,7 @@ import org.openecomp.mso.apihandler.common.ErrorNumbers; public class Messages { - public static final Map errors = new HashMap(); + public static final Map errors = new HashMap<>(); static { errors.put(ErrorNumbers.REQUEST_FAILED_SCHEMA_VALIDATION + "_service", "Service request FAILED schema validation. %s"); errors.put(ErrorNumbers.REQUEST_FAILED_SCHEMA_VALIDATION + "_feature", "Feature request FAILED schema validation. %s"); diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/NetworkInfoHandler.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/NetworkInfoHandler.java index f61a50bb06..bcea8fd8d5 100644 --- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/NetworkInfoHandler.java +++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/NetworkInfoHandler.java @@ -85,7 +85,7 @@ public class NetworkInfoHandler { + aicNodeClli + " - tenant id " + tenantId); - Response response = null; + Response response; if (networkType != null) { response = this.getRequestList ("vnfType", networkType, version); } else { @@ -216,7 +216,7 @@ public class NetworkInfoHandler { MsoLogger.setLogContext (requestId, null); getMsoLogger ().debug ("getRequest: " + requestId); - String responseString = null; + String responseString; InfraActiveRequests activeReq = (RequestsDatabase.getInstance()).getRequestFromInfraActive (requestId, "NETWORK"); if (activeReq != null) { @@ -239,7 +239,7 @@ public class NetworkInfoHandler { queryValue, "NETWORK"); - List queryResponseList = new LinkedList (); + List queryResponseList = new LinkedList <> (); if (activeReqList != null) { // build response for active @@ -283,7 +283,7 @@ public class NetworkInfoHandler { } private List infraRequestsResponses (List arList, String version) { - List queryResponseList = new LinkedList (); + List queryResponseList = new LinkedList <> (); for (InfraRequests ar : arList) { NetworkRequest qr = fillGeneric (ar); -- cgit 1.2.3-korg