Skip to content

Commit

Permalink
Update for SnakeYaml 2
Browse files Browse the repository at this point in the history
  • Loading branch information
barchetta committed Feb 20, 2024
1 parent 9b394d7 commit 26bb3c8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import io.helidon.build.common.FileUtils;
import io.helidon.build.common.SubstitutionVariables;

import org.yaml.snakeyaml.LoaderOptions;
import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.constructor.SafeConstructor;

Expand Down Expand Up @@ -303,7 +304,7 @@ public static Config create(Path path, Map<String, String> properties) {
* @return new instance
*/
public static Config create(Reader reader, Map<String, String> properties) {
Yaml yaml = new Yaml(new SafeConstructor());
Yaml yaml = new Yaml(new SafeConstructor(new LoaderOptions()));
return create(yaml.loadAs(reader, Object.class), properties);
}

Expand Down

0 comments on commit 26bb3c8

Please sign in to comment.