diff --git a/pom.xml b/pom.xml index 418bcdb..64facaa 100644 --- a/pom.xml +++ b/pom.xml @@ -217,7 +217,7 @@ org.yaml snakeyaml - 1.16 + 2.2 junit diff --git a/src/main/java/io/github/binaryfoo/TagMetaData.kt b/src/main/java/io/github/binaryfoo/TagMetaData.kt index ecc54af..d7b4fb6 100644 --- a/src/main/java/io/github/binaryfoo/TagMetaData.kt +++ b/src/main/java/io/github/binaryfoo/TagMetaData.kt @@ -5,6 +5,7 @@ import io.github.binaryfoo.decoders.PrimitiveDecoder import io.github.binaryfoo.res.ClasspathIO import io.github.binaryfoo.tlv.Tag import org.yaml.snakeyaml.DumperOptions +import org.yaml.snakeyaml.LoaderOptions import org.yaml.snakeyaml.Yaml import org.yaml.snakeyaml.constructor.Constructor import org.yaml.snakeyaml.representer.Representer @@ -67,7 +68,7 @@ class TagMetaData(private val metadata: MutableMap) { @JvmStatic fun load(name: String): TagMetaData { - val yaml = Yaml(Constructor(), Representer(), DumperOptions(), object : Resolver() { + val yaml = Yaml(Constructor(LoaderOptions()), Representer(DumperOptions()), DumperOptions(), object : Resolver() { override fun addImplicitResolvers() { // leave everything as strings }