Add since attribute to @DeprecatedConfigurationProperty annotation
Closes gh-36482
This commit is contained in:
@@ -31,6 +31,7 @@ import java.lang.annotation.Target;
|
||||
* This annotation <strong>must</strong> be used on the getter of the deprecated element.
|
||||
*
|
||||
* @author Phillip Webb
|
||||
* @author Scott Frederick
|
||||
* @since 1.3.0
|
||||
*/
|
||||
@Target(ElementType.METHOD)
|
||||
@@ -50,4 +51,10 @@ public @interface DeprecatedConfigurationProperty {
|
||||
*/
|
||||
String replacement() default "";
|
||||
|
||||
/**
|
||||
* The version in which the property became deprecated.
|
||||
* @return the version
|
||||
*/
|
||||
String since() default "";
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user