Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump snakeyaml from 1.16 to 2.2 #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.16</version>
<version>2.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/io/github/binaryfoo/TagMetaData.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -67,7 +68,7 @@ class TagMetaData(private val metadata: MutableMap<String, TagInfo>) {

@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
}
Expand Down