replace the type specification in the constructor 49/109149/1
authorRupinder <rupinsi1@in.ibm.com>
Mon, 15 Jun 2020 08:08:42 +0000 (13:38 +0530)
committerRupinder <rupinsi1@in.ibm.com>
Mon, 15 Jun 2020 08:08:56 +0000 (13:38 +0530)
Issue-ID: APPC-1859
Change-Id: I27984aa94a3107f5cfa7ed5b7efd1ea1ee785e64
Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java
appc-config/appc-config-audit/provider/src/main/java/org/onap/sdnc/config/audit/SliAuditActivator.java
appc-config/appc-config-params/provider/src/main/java/org/onap/sdnc/config/params/ParamsHandlerActivator.java
appc-config/appc-config-params/provider/src/main/java/org/onap/sdnc/config/params/parser/PropertyDefinitionNode.java
appc-config/appc-data-services/provider/src/main/java/org/onap/appc/data/services/AppcDataServiceActivator.java

index e0cbc79..1928687 100644 (file)
@@ -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"));
index 78af7ab..cf77885 100644 (file)
@@ -36,7 +36,7 @@ import com.att.eelf.configuration.EELFManager;
 
 public class SliAuditActivator implements BundleActivator{
 
-    private List<ServiceRegistration> registrations = new LinkedList<ServiceRegistration>();
+    private List<ServiceRegistration> registrations = new LinkedList<>();
 
 
     private static final EELFLogger log = EELFManager.getInstance().getLogger(SliAuditActivator.class);
index c98ec3e..a5db5be 100644 (file)
@@ -40,7 +40,7 @@ public class ParamsHandlerActivator implements BundleActivator {
     
     private static final String STR_PROPERTY_DEFINITION_FAILED = "Failed while getting PropertyDefinitionNode";
 
-    private List<ServiceRegistration> registrations = new LinkedList<ServiceRegistration>();
+    private List<ServiceRegistration> registrations = new LinkedList<>();
 
 
     private static final EELFLogger log =
index ab69584..f82ebe1 100644 (file)
@@ -152,7 +152,7 @@ public class PropertyDefinitionNode implements SvcLogicJavaPlugin {
 
             if (StringUtils.isBlank(requestParamJson)) {
                 //throw new MissingParameterException(STR_JSON_DATA_MISSING);
-                Map <String,String> tempMap=new HashMap<String, String> ();
+                Map <String,String> tempMap=new HashMap<> ();
                 requestParamJson = tempMap.toString();
                 log.info("mergeJsonData()::"+STR_JSON_DATA_MISSING);
             }
@@ -331,7 +331,7 @@ public class PropertyDefinitionNode implements SvcLogicJavaPlugin {
 
             if (StringUtils.isBlank(configParams)) {
                 //throw new MissingParameterException("Request Param (configParams) is Missing ..");
-                Map <String,String> tempMap=new HashMap<String, String> ();
+                Map <String,String> tempMap=new HashMap<> ();
                 configParams = tempMap.toString();
                 log.info("validateParams():: Request Param (configParams) is Missing ..");
                 
index 9b4bf5c..469ce6f 100644 (file)
@@ -36,7 +36,7 @@ import com.att.eelf.configuration.EELFManager;
 public class AppcDataServiceActivator implements BundleActivator {
 
        private static final EELFLogger log = EELFManager.getInstance().getLogger(AppcDataServiceActivator.class);
-       private List<ServiceRegistration> registrations = new LinkedList<ServiceRegistration>();
+       private List<ServiceRegistration> registrations = new LinkedList<>();
        
        @Override
        public void start(BundleContext ctx) throws Exception {