From a43aa18a221f950128a7c1f5c1b291ffdee720b0 Mon Sep 17 00:00:00 2001 From: LOOHP Date: Tue, 10 Dec 2024 16:56:38 +0000 Subject: [PATCH] Upgrade snack yaml version --- pom.xml | 2 +- src/main/java/com/loohp/limbo/file/FileConfiguration.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index e146a04..dd3b5d8 100644 --- a/pom.xml +++ b/pom.xml @@ -246,7 +246,7 @@ org.yaml snakeyaml - 1.26 + 2.3 compile diff --git a/src/main/java/com/loohp/limbo/file/FileConfiguration.java b/src/main/java/com/loohp/limbo/file/FileConfiguration.java index de7c22a..a1f35c7 100644 --- a/src/main/java/com/loohp/limbo/file/FileConfiguration.java +++ b/src/main/java/com/loohp/limbo/file/FileConfiguration.java @@ -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);