Class SnakeYamlUtil

java.lang.Object
liquibase.util.SnakeYamlUtil

public class SnakeYamlUtil extends Object
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.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    setCodePointLimitSafely(org.yaml.snakeyaml.LoaderOptions loaderOptions, int codePointLimit)
    Safely set the code point limit when configuring a new SnakeYaml instance.
    static void
    setDefaultTagInspector(org.yaml.snakeyaml.LoaderOptions loaderOptions)
    Safely set the default tag inspector when configuring a new SnakeYaml instance.
    static void
    setProcessCommentsSafely(org.yaml.snakeyaml.LoaderOptions loaderOptions, boolean enable)
    Safely set configuration to process comments when configuring a new SnakeYaml instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • setCodePointLimitSafely

      public static void setCodePointLimitSafely(org.yaml.snakeyaml.LoaderOptions loaderOptions, int codePointLimit)
      Safely set the code point limit when configuring a new SnakeYaml instance.
    • setProcessCommentsSafely

      public static void setProcessCommentsSafely(org.yaml.snakeyaml.LoaderOptions loaderOptions, boolean enable)
      Safely set configuration to process comments when configuring a new SnakeYaml instance. This method had the return type changed.
    • setDefaultTagInspector

      public static void setDefaultTagInspector(org.yaml.snakeyaml.LoaderOptions loaderOptions)
      Safely set the default tag inspector when configuring a new SnakeYaml instance.