Class 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 Detail

      • 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.