Example usage for org.springframework.boot.configurationmetadata Deprecation getLevel

List of usage examples for org.springframework.boot.configurationmetadata Deprecation getLevel

Introduction

In this page you can find the example usage for org.springframework.boot.configurationmetadata Deprecation getLevel.

Prototype

public Level getLevel() 

Source Link

Document

Define the Level of deprecation.

Usage

From source file:com.github.alexfalappa.nbspringboot.Utils.java

public static boolean isErrorDeprecated(ConfigurationMetadataProperty meta) {
    Deprecation depr = meta.getDeprecation();
    return depr != null && depr.getLevel() != null && depr.getLevel().equals(Deprecation.Level.ERROR);
}