aboutsummaryrefslogtreecommitdiffstats
path: root/common-be/src/main/java
diff options
context:
space:
mode:
authorMichaelMorris <michael.morris@est.tech>2023-08-30 09:35:11 +0100
committerVasyl Razinkov <vasyl.razinkov@est.tech>2023-08-31 10:34:11 +0000
commit076f6df934ad1db1ec261a13a5e47c95d64b8178 (patch)
tree562f52085d41fa975b97bf06186d6954962bba4f /common-be/src/main/java
parent0192c9f95f9b9aa64f8574700f9d55190f56f286 (diff)
Remove superflous surrounding quotes
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4610 Change-Id: I941ddc8b54da191ad856b6f816db0b443be16b48
Diffstat (limited to 'common-be/src/main/java')
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ToscaFunctionJsonDeserializer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ToscaFunctionJsonDeserializer.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ToscaFunctionJsonDeserializer.java
index 9671eee217..e210b93e71 100644
--- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ToscaFunctionJsonDeserializer.java
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ToscaFunctionJsonDeserializer.java
@@ -26,6 +26,8 @@ import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
+import com.google.common.base.CharMatcher;
+
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
@@ -244,7 +246,7 @@ public class ToscaFunctionJsonDeserializer extends StdDeserializer<ToscaFunction
);
if (toscaFunctionType == ToscaFunctionType.STRING) {
final ToscaStringParameter toscaStringParameter = new ToscaStringParameter();
- toscaStringParameter.setValue(parameterNode.get("value").asText());
+ toscaStringParameter.setValue(CharMatcher.anyOf("\"\'").trimFrom(parameterNode.get("value").asText()));
functionParameterList.add(toscaStringParameter);
} else {
final ToscaFunction toscaFunction = this.deserializeToscaFunction(parameterNode, context);