aboutsummaryrefslogtreecommitdiffstats
path: root/appc-config/appc-config-adaptor/provider/src/main
diff options
context:
space:
mode:
authorRupinder <rupinsi1@in.ibm.com>2020-06-15 13:38:42 +0530
committerRupinder <rupinsi1@in.ibm.com>2020-06-15 13:38:56 +0530
commit9559ea969ce9086d865cb31a44d9b10bacf2bdfa (patch)
treeb072eb1b99bcf2acb86394577d9d500c33bf78a9 /appc-config/appc-config-adaptor/provider/src/main
parent389393eb86e4325f3fcc7cd6b4135be2881b0baa (diff)
replace the type specification in the constructor
Issue-ID: APPC-1859 Change-Id: I27984aa94a3107f5cfa7ed5b7efd1ea1ee785e64 Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
Diffstat (limited to 'appc-config/appc-config-adaptor/provider/src/main')
-rw-r--r--appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java b/appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java
index e0cbc7984..192868797 100644
--- a/appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java
+++ b/appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java
@@ -636,7 +636,7 @@ public class ConfigComponentAdaptor implements SvcLogicAdaptor {
String nd = buildNetworkData2(ctx, ndTemplate, operation);
String reqTemplate = readFile("/config-request.xml");
- Map<String, String> param = new HashMap<String, String>();
+ Map<String, String> param = new HashMap<>();
param.put("request-id", ctx.getAttribute("service-data.appc-request-header.svc-request-id"));
param.put("request-type", requestType);
param.put("callback-url", configCallbackUrl);
@@ -666,7 +666,7 @@ public class ConfigComponentAdaptor implements SvcLogicAdaptor {
private ConfigStatus activate(SvcLogicContext ctx, boolean change) {
String reqTemplate = readFile("/config-request.xml");
- Map<String, String> param = new HashMap<String, String>();
+ Map<String, String> param = new HashMap<>();
param.put("request-id", ctx.getAttribute("service-data.appc-request-header.svc-request-id"));
param.put("callback-url", configCallbackUrl);
param.put("action", change ? "DownloadChange" : "DownloadBase");
@@ -690,7 +690,7 @@ public class ConfigComponentAdaptor implements SvcLogicAdaptor {
private ConfigStatus audit(SvcLogicContext ctx, String auditLevel) {
String reqTemplate = readFile("/audit-request.xml");
- Map<String, String> param = new HashMap<String, String>();
+ Map<String, String> param = new HashMap<>();
param.put("request-id", ctx.getAttribute("service-data.appc-request-header.svc-request-id"));
param.put("callback-url", auditCallbackUrl);
param.put("equipment-name", ctx.getAttribute("service-data.service-information.service-instance-id"));