Use non-deprecated snakeyaml FlowStyle API

This commit is contained in:
aboyko
2023-07-11 23:54:00 -04:00
parent 6496537e61
commit 0be66eb6ae
2 changed files with 4 additions and 3 deletions

View File

@@ -108,7 +108,7 @@ public class YamlSchemaProblems {
}
else if (flowStyle instanceof DumperOptions.FlowStyle) {
DumperOptions.FlowStyle style = (DumperOptions.FlowStyle) flowStyle;
flow = style.getStyleBoolean();
flow = style == DumperOptions.FlowStyle.FLOW;
}
if (!flow) {