Annotation Interface DeprecationInfo
@Documented
@Retention(SOURCE)
@Target({CONSTRUCTOR,FIELD,LOCAL_VARIABLE,METHOD,PACKAGE,PARAMETER,TYPE})
public @interface DeprecationInfo
Provides additional deprecation information, which should be used alongside
Deprecated.
For guidance and process of deprecations, please refer to spinnaker.io's "Managing Deprecations" page: https://spinnaker.io/community/contributing/managing-deprecations/
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionAn optional link to the Github issue, PR or document that covers this deprecation.Short explanation on what functionality is replacing this deprecation. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant value forDeprecationInfo#replacedBy.
-
Field Details
-
NO_REPLACEMENT
Constant value forDeprecationInfo#replacedBy.- See Also:
-
-
Element Details
-
reason
String reasonA short explanation of the deprecation.If a short explanation is insufficient, use
link()to provide additional context.Example: "Use of Duration is preferred over primitive long values."
-
since
String sinceThe product version that the deprecation was introduced.Example: "1.20.0"
-
eol
String eolThe scheduled product version that will see this functionality removed from the codebase.Example: "1.25.0"
-
-
-
replaceWith
String replaceWithShort explanation on what functionality is replacing this deprecation. If there is no replacement,NO_REPLACEMENTshould be used.If a short explanation is insufficient, use
link()to provide additional context.Example: "
MyClass#theMethodReturningDuration()"- Default:
- "noReplacement"
-
link
String linkAn optional link to the Github issue, PR or document that covers this deprecation.- Default:
- ""
-