diff options
author | Patrick Brady <patrick.brady@att.com> | 2019-04-30 13:08:25 -0700 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2019-05-03 18:53:09 +0000 |
commit | 8b0f5d3c68f91970e4fa5f735ac7527628e28567 (patch) | |
tree | 54c109a53bd659b558f01d5509bef0066c93f9ee /appc-config/appc-config-generator/provider/src/main | |
parent | e30a70e5d8ba25e566c2b9a83148df588e98cce0 (diff) |
Fix for extra json quotes
Substring method output was being lost, causing extra
quotes to stay in the String.
Change-Id: I35e9eee60756b7b743386600e3ab1d203cca036a
Signed-off-by: Patrick Brady <patrick.brady@att.com>
Issue-ID: APPC-1576
Diffstat (limited to 'appc-config/appc-config-generator/provider/src/main')
-rw-r--r-- | appc-config/appc-config-generator/provider/src/main/java/org/onap/sdnc/config/generator/tool/JSONTool.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/appc-config/appc-config-generator/provider/src/main/java/org/onap/sdnc/config/generator/tool/JSONTool.java b/appc-config/appc-config-generator/provider/src/main/java/org/onap/sdnc/config/generator/tool/JSONTool.java index fa1c0fee9..20aeacb3b 100644 --- a/appc-config/appc-config-generator/provider/src/main/java/org/onap/sdnc/config/generator/tool/JSONTool.java +++ b/appc-config/appc-config-generator/provider/src/main/java/org/onap/sdnc/config/generator/tool/JSONTool.java @@ -71,7 +71,7 @@ public class JSONTool { //JSONObject.quote() will always return, at minimum, a string with two quotes, //even if a null string is passed to it. So this substring method does not //need any checks. - oString.substring(1, oString.length() - 1); + oString = oString.substring(1, oString.length() - 1); mm.put(key, oString); log.info("Added property: " + key + ": " + oString); } else if (o instanceof JSONObject) { |