Search in sources :

Example 6 with Deprecation

use of org.springframework.ide.vscode.boot.configurationmetadata.Deprecation in project sts4 by spring-projects.

the class InformationTemplates method createDeprecation.

private static Deprecation createDeprecation(PropertyInfo info) {
    Deprecation deprecation = null;
    if (info.isDeprecated()) {
        deprecation = new Deprecation();
        deprecation.setReason(info.getDeprecationReason());
        deprecation.setReplacement(info.getDeprecationReplacement());
    }
    return deprecation;
}
Also used : Deprecation(org.springframework.ide.vscode.boot.configurationmetadata.Deprecation)

Aggregations

Deprecation (org.springframework.ide.vscode.boot.configurationmetadata.Deprecation)6 ConfigurationMetadataProperty (org.springframework.ide.vscode.boot.configurationmetadata.ConfigurationMetadataProperty)2 Renderable (org.springframework.ide.vscode.commons.util.Renderable)2 ArrayList (java.util.ArrayList)1 StsValueHint (org.springframework.ide.vscode.boot.metadata.hints.StsValueHint)1 IType (org.springframework.ide.vscode.commons.java.IType)1