diff options
author | Rupinder <rupinsi1@in.ibm.com> | 2020-06-15 13:38:42 +0530 |
---|---|---|
committer | Rupinder <rupinsi1@in.ibm.com> | 2020-06-15 13:38:56 +0530 |
commit | 9559ea969ce9086d865cb31a44d9b10bacf2bdfa (patch) | |
tree | b072eb1b99bcf2acb86394577d9d500c33bf78a9 /appc-config/appc-config-params/provider | |
parent | 389393eb86e4325f3fcc7cd6b4135be2881b0baa (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')
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 .."); |