From bc43f7657f767892d6cc673da52571938392b3ed Mon Sep 17 00:00:00 2001 From: ggrandes Date: Wed, 18 Sep 2024 13:54:40 +0200 Subject: [PATCH] update snakeyaml dependency (major) --- jentunnel-core/pom.xml | 2 +- .../src/main/java/org/javastack/jentunnel/ConfigUtils.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/jentunnel-core/pom.xml b/jentunnel-core/pom.xml index afa6d7b..f653434 100644 --- a/jentunnel-core/pom.xml +++ b/jentunnel-core/pom.xml @@ -17,7 +17,7 @@ ${project.basedir}/.. 1.7.36 1.1.2 - 1.33 + 2.3 2.1.6 2.8.0 1.15 diff --git a/jentunnel-core/src/main/java/org/javastack/jentunnel/ConfigUtils.java b/jentunnel-core/src/main/java/org/javastack/jentunnel/ConfigUtils.java index f5b7575..2d3d641 100644 --- a/jentunnel-core/src/main/java/org/javastack/jentunnel/ConfigUtils.java +++ b/jentunnel-core/src/main/java/org/javastack/jentunnel/ConfigUtils.java @@ -11,6 +11,7 @@ import org.yaml.snakeyaml.DumperOptions; import org.yaml.snakeyaml.DumperOptions.LineBreak; +import org.yaml.snakeyaml.LoaderOptions; import org.yaml.snakeyaml.TypeDescription; import org.yaml.snakeyaml.Yaml; import org.yaml.snakeyaml.constructor.Constructor; @@ -77,7 +78,7 @@ protected static Yaml getYaml() { options.setAllowUnicode(false); options.setIndicatorIndent(2); options.setIndent(4); - final Constructor constructor = new Constructor(ConfigData.class); + final Constructor constructor = new Constructor(ConfigData.class, new LoaderOptions()); final Representer representer = new Representer(options); for (final Entry, String> e : map.entrySet()) { constructor.addTypeDescription(new TypeDescription(e.getKey(), e.getValue()));