From: Sandeep J Date: Wed, 19 Dec 2018 07:14:43 +0000 (+0530) Subject: fixed sonar issue in UpdateNodeExecutor.java X-Git-Tag: 0.4.0~17 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=06eec44b6c2a3456d3a417af0740a7085612b615;p=ccsdk%2Fsli%2Fcore.git fixed sonar issue in UpdateNodeExecutor.java to increase code coverage Issue-ID: CCSDK-525 Change-Id: I217ef3ac414ce2c57ba10e99c071ea91d4ae3904 Signed-off-by: Sandeep J --- diff --git a/sli/provider-base/src/main/java/org/onap/ccsdk/sli/core/sli/provider/base/UpdateNodeExecutor.java b/sli/provider-base/src/main/java/org/onap/ccsdk/sli/core/sli/provider/base/UpdateNodeExecutor.java index c4c8faa8..3d93a37e 100644 --- a/sli/provider-base/src/main/java/org/onap/ccsdk/sli/core/sli/provider/base/UpdateNodeExecutor.java +++ b/sli/provider-base/src/main/java/org/onap/ccsdk/sli/core/sli/provider/base/UpdateNodeExecutor.java @@ -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 parmMap = new HashMap(); + Map parmMap = new HashMap<>(); Set> parmSet = node.getParameterSet(); boolean hasParms = false;