summaryrefslogtreecommitdiffstats
path: root/common/onap-tosca-datatype
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2023-09-01 14:31:28 +0100
committerMichael Morris <michael.morris@est.tech>2023-09-07 13:16:33 +0000
commit28e1a54e6074f50dcc06f7ea4eb3943ad873b448 (patch)
treeedc59848dedfda9cf5d68e08b6744516d0e761a4 /common/onap-tosca-datatype
parentc469756a1092194adedd590d35f0f1f8feac3a36 (diff)
Create plugin point for csar generation
Issue-ID: SDC-4578 Signed-off-by: franciscovila <javier.paradela.vila@est.tech> Change-Id: I3bb280ce4e442780598464216145abc130765539 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Diffstat (limited to 'common/onap-tosca-datatype')
-rw-r--r--common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/services/YamlUtil.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/services/YamlUtil.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/services/YamlUtil.java
index 45409c3439..25407f19eb 100644
--- a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/services/YamlUtil.java
+++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/services/YamlUtil.java
@@ -87,7 +87,7 @@ public class YamlUtil {
constructor.setPropertyUtils(getPropertyUtils());
TypeDescription yamlFileDescription = new TypeDescription(typClass);
constructor.addTypeDescription(yamlFileDescription);
- T yamlObj = new Yaml(constructor, new Representer(), new DumperOptions(), getLoaderOptions()).load(yamlContent);
+ T yamlObj = new Yaml(constructor, new Representer(new DumperOptions()), new DumperOptions(), getLoaderOptions()).load(yamlContent);
//noinspection ResultOfMethodCallIgnored
yamlObj.toString();
@@ -114,7 +114,7 @@ public class YamlUtil {
TypeDescription yamlFileDescription = new TypeDescription(typClass);
constructor.addTypeDescription(yamlFileDescription);
//No Yaml Constructor takes only Constructor and LoaderOptions, that is why I had to pass anonymous Representer and DumperOptions objects
- T yamlObj = new Yaml(constructor, new Representer(), new DumperOptions(), getLoaderOptions()).load(yamlContent);
+ T yamlObj = new Yaml(constructor, new Representer(new DumperOptions()), new DumperOptions(), getLoaderOptions()).load(yamlContent);
if (yamlObj != null) {
//noinspection ResultOfMethodCallIgnored
yamlObj.toString();