Skip to content

Commit

Permalink
update snakeyaml dependency (major)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrandes committed Sep 18, 2024
1 parent 2518652 commit bc43f76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jentunnel-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<projectRoot>${project.basedir}/..</projectRoot>
<slf4j.version>1.7.36</slf4j.version>
<packer.version>1.1.2</packer.version>
<yaml.version>1.33</yaml.version>
<yaml.version>2.3</yaml.version>
<mina.version>2.1.6</mina.version>
<sshd.version>2.8.0</sshd.version>
<commons-codec.version>1.15</commons-codec.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<Class<?>, String> e : map.entrySet()) {
constructor.addTypeDescription(new TypeDescription(e.getKey(), e.getValue()));
Expand Down

0 comments on commit bc43f76

Please sign in to comment.