From 8b0f5d3c68f91970e4fa5f735ac7527628e28567 Mon Sep 17 00:00:00 2001 From: Patrick Brady Date: Tue, 30 Apr 2019 13:08:25 -0700 Subject: 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 Issue-ID: APPC-1576 --- .../src/main/java/org/onap/sdnc/config/generator/tool/JSONTool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'appc-config') 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) { -- cgit 1.2.3-korg