Add since attribute to @DeprecatedConfigurationProperty annotation

Closes gh-36482
This commit is contained in:
Scott Frederick
2023-07-28 16:20:23 -05:00
parent 0646eabd4a
commit 2e50d11d86
18 changed files with 116 additions and 64 deletions

View File

@@ -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 "";
}