Fixed sonar issues/code-smells across this file
Issue-ID: CCSDK-847
Change-Id: I5e528e23d8691fffca9b3732b7ff5e68a4827162
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
* ONAP - CCSDK
* ================================================================================
* Copyright (C) 2018 Huawei Technologies Co., Ltd. All rights reserved.
* ONAP - CCSDK
* ================================================================================
* Copyright (C) 2018 Huawei Technologies Co., Ltd. All rights reserved.
+ *
+ * Modifications Copyright © 2018 IBM.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* @return updated XML request message
*/
static String getUpdatedXmlReq(String req, String nodeName, String modNs) {
* @return updated XML request message
*/
static String getUpdatedXmlReq(String req, String nodeName, String modNs) {
- String rootNode = "\n<" + nodeName + " xmlns=\"" + modNs.toString() +
+ String rootNode = "\n<" + nodeName + " xmlns=\"" + modNs +
"\">\n";
req = req.replaceFirst("\n", rootNode);
req = req + "</" + nodeName + ">";
"\">\n";
req = req.replaceFirst("\n", rootNode);
req = req + "</" + nodeName + ">";