fixed sonar issue in UpdateNodeExecutor.java 78/74878/1
authorSandeep J <sandeejh@in.ibm.com>
Wed, 19 Dec 2018 07:14:43 +0000 (12:44 +0530)
committerSandeep J <sandeejh@in.ibm.com>
Wed, 19 Dec 2018 07:14:57 +0000 (12:44 +0530)
to increase code coverage

Issue-ID: CCSDK-525
Change-Id: I217ef3ac414ce2c57ba10e99c071ea91d4ae3904
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
sli/provider-base/src/main/java/org/onap/ccsdk/sli/core/sli/provider/base/UpdateNodeExecutor.java

index c4c8faa..3d93a37 100644 (file)
@@ -5,6 +5,8 @@
  * Copyright (C) 2017 AT&T Intellectual Property. All rights
  *                                             reserved.
  * ================================================================================
+ * Modifications Copyright (C) 2018 IBM.
+ * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -47,7 +49,7 @@ public class UpdateNodeExecutor extends AbstractSvcLogicNodeExecutor {
         String pfx = SvcLogicExpressionResolver.evaluate(node.getAttribute("pfx"), node, ctx);
 
 
-        Map<String, String> parmMap = new HashMap<String, String>();
+        Map<String, String> parmMap = new HashMap<>();
 
         Set<Map.Entry<String, SvcLogicExpression>> parmSet = node.getParameterSet();
         boolean hasParms = false;