aboutsummaryrefslogtreecommitdiffstats
path: root/appc-config/appc-config-params/provider
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-params/provider
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-params/provider')
-rw-r--r--appc-config/appc-config-params/provider/src/main/java/org/onap/sdnc/config/params/ParamsHandlerActivator.java2
-rw-r--r--appc-config/appc-config-params/provider/src/main/java/org/onap/sdnc/config/params/parser/PropertyDefinitionNode.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/appc-config/appc-config-params/provider/src/main/java/org/onap/sdnc/config/params/ParamsHandlerActivator.java b/appc-config/appc-config-params/provider/src/main/java/org/onap/sdnc/config/params/ParamsHandlerActivator.java
index c98ec3e55..a5db5be75 100644
--- a/appc-config/appc-config-params/provider/src/main/java/org/onap/sdnc/config/params/ParamsHandlerActivator.java
+++ b/appc-config/appc-config-params/provider/src/main/java/org/onap/sdnc/config/params/ParamsHandlerActivator.java
@@ -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 =
diff --git a/appc-config/appc-config-params/provider/src/main/java/org/onap/sdnc/config/params/parser/PropertyDefinitionNode.java b/appc-config/appc-config-params/provider/src/main/java/org/onap/sdnc/config/params/parser/PropertyDefinitionNode.java
index ab695841f..f82ebe1a5 100644
--- a/appc-config/appc-config-params/provider/src/main/java/org/onap/sdnc/config/params/parser/PropertyDefinitionNode.java
+++ b/appc-config/appc-config-params/provider/src/main/java/org/onap/sdnc/config/params/parser/PropertyDefinitionNode.java
@@ -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 ..");