Annotation 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
    Modifier and Type
    Required Element
    Description
    The scheduled product version that will see this functionality removed from the codebase.
    A short explanation of the deprecation.
    The product version that the deprecation was introduced.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    An optional link to the Github issue, PR or document that covers this deprecation.
    Short explanation on what functionality is replacing this deprecation.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Constant value for DeprecationInfo#replacedBy.
  • Field Details

  • Element Details

    • reason

      String reason
      A 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 since
      The product version that the deprecation was introduced.

      Example: "1.20.0"

    • eol

      String eol
      The scheduled product version that will see this functionality removed from the codebase.

      Example: "1.25.0"

    • replaceWith

      String replaceWith
      Short explanation on what functionality is replacing this deprecation. If there is no replacement, NO_REPLACEMENT should be used.

      If a short explanation is insufficient, use link() to provide additional context.

      Example: "MyClass#theMethodReturningDuration()"

      Default:
      "noReplacement"
    • link

      String link
      An optional link to the Github issue, PR or document that covers this deprecation.
      Default:
      ""