summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2018-12-17 20:53:35 +0000
committerGerrit Code Review <gerrit@onap.org>2018-12-17 20:53:35 +0000
commitf96bebd532365275ccae1731bfa4d4f637911769 (patch)
treecd0a3e6135278b4c08cc94aaab17940b97c6bbad
parentdb0666e95224084d7996d76ce49d4b5f2b7db0bd (diff)
parentd0ecfcdedbf5bf2084d41580791fca34557ba2ee (diff)
Merge "Sonar Fix: RestconfApiUtils.java"
-rw-r--r--restconf-client/provider/src/main/java/org/onap/ccsdk/sli/plugins/restconfapicall/RestconfApiUtils.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/restconf-client/provider/src/main/java/org/onap/ccsdk/sli/plugins/restconfapicall/RestconfApiUtils.java b/restconf-client/provider/src/main/java/org/onap/ccsdk/sli/plugins/restconfapicall/RestconfApiUtils.java
index 3a0b5fb35..c5c7a919b 100644
--- a/restconf-client/provider/src/main/java/org/onap/ccsdk/sli/plugins/restconfapicall/RestconfApiUtils.java
+++ b/restconf-client/provider/src/main/java/org/onap/ccsdk/sli/plugins/restconfapicall/RestconfApiUtils.java
@@ -3,6 +3,8 @@
* 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.
@@ -240,7 +242,7 @@ public final class RestconfApiUtils {
* @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 + ">";