Upgrade snack yaml version

This commit is contained in:
LOOHP
2024-12-10 16:56:38 +00:00
parent 61331a3ea1
commit a43aa18a22
2 changed files with 3 additions and 3 deletions
@@ -121,7 +121,7 @@ public class FileConfiguration {
options.setIndent(2);
options.setPrettyFlow(true);
options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
Representer customRepresenter = new Representer();
Representer customRepresenter = new Representer(options);
YamlOrder customProperty = new YamlOrder();
customRepresenter.setPropertyUtils(customProperty);
Yaml yaml = new Yaml(customRepresenter, options);
@@ -145,7 +145,7 @@ public class FileConfiguration {
options.setIndent(2);
options.setPrettyFlow(true);
options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
Representer customRepresenter = new Representer();
Representer customRepresenter = new Representer(options);
YamlOrder customProperty = new YamlOrder();
customRepresenter.setPropertyUtils(customProperty);
Yaml yaml = new Yaml(customRepresenter, options);