aboutsummaryrefslogtreecommitdiffstats
path: root/appc-config
diff options
context:
space:
mode:
authorPatrick Brady <patrick.brady@att.com>2019-04-30 13:08:25 -0700
committerPatrick Brady <patrick.brady@att.com>2019-04-30 13:08:34 -0700
commit8de52a3d6112f919ee019f401a51d30b7cbde164 (patch)
treea3685bff3556f528f675eea073bd2223f6ec5ed1 /appc-config
parentd1bddabef57ab3582d1b1c045c0554d1e476e52e (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')
-rw-r--r--appc-config/appc-config-generator/provider/src/main/java/org/onap/sdnc/config/generator/tool/JSONTool.java2
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) {