Top Description Fields Constructors Methods
liquibase.util

public Class SnakeYamlUtil

extends Object
Class Inheritance
Imports
liquibase.Scope, org.yaml.snakeyaml.LoaderOptions

This class provides methods that are necessary because older (< 1.32) versions of SnakeYaml do not have those methods. Thus, if someone is using an older version of SnakeYaml, we do not want to interrupt Liquibase execution with an exception anymore.

Field Summary

Modifier and TypeField and Description
private static boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static void
safelyCallNewSnakeYamlMethod(Runnable code)

Helper method to make sure that we display the error message only once.

public static void
setCodePointLimitSafely(LoaderOptions loaderOptions, int codePointLimit)

Safely set the code point limit when configuring a new SnakeYaml instance.

public static void
setDefaultTagInspector(LoaderOptions loaderOptions)

Safely set the default tag inspector when configuring a new SnakeYaml instance.

public static void
setProcessCommentsSafely(LoaderOptions loaderOptions, boolean enable)

Safely set configuration to process comments when configuring a new SnakeYaml instance.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

showErrorMessageback to summary
private static boolean showErrorMessage

Constructor Detail

SnakeYamlUtilback to summary
private SnakeYamlUtil()

Method Detail

safelyCallNewSnakeYamlMethodback to summary
private static void safelyCallNewSnakeYamlMethod(Runnable code)

Helper method to make sure that we display the error message only once.

setCodePointLimitSafelyback to summary
public static void setCodePointLimitSafely(LoaderOptions loaderOptions, int codePointLimit)

Safely set the code point limit when configuring a new SnakeYaml instance.

setDefaultTagInspectorback to summary
public static void setDefaultTagInspector(LoaderOptions loaderOptions)

Safely set the default tag inspector when configuring a new SnakeYaml instance.

setProcessCommentsSafelyback to summary
public static void setProcessCommentsSafely(LoaderOptions loaderOptions, boolean enable)

Safely set configuration to process comments when configuring a new SnakeYaml instance. This method had the return type changed.