Snake YAML 2.0 Example of Consturctor

312 views
Skip to first unread message

Rajendra Palikala

unread,
Mar 2, 2023, 2:38:45 AM3/2/23
to SnakeYAML
Hi,

I have an application that uses
Snake YAML 1.32  Constructor

I was trying o upgrade it to Sanke YAML 2.0

Java compiler is complaining as the Constructor parameters have changes between versions.

snakeyaml 2.0
Constructor​(Class<? extends Object> theRoot, LoaderOptions loadingConfig)

Vs

snakeyaml 1.33
Constructor(Class<? extends Object> theRoot) 

Can any one provide an example of how to use LoaderOptions ?

Andrey Somov

unread,
Mar 2, 2023, 3:23:25 AM3/2/23
to snakeya...@googlegroups.com
Hi Rajendra,
I am not sure I understand your question. The tests have a lot of different examples. Clone the code and search for LoaderOptions


Cheers,
Andrey

--
You received this message because you are subscribed to the Google Groups "SnakeYAML" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snakeyaml-cor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/snakeyaml-core/5dea67ea-caaa-41db-b759-d31470889b4an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages