Skip to content

Deprecated

The declaration should no longer be used.

Parameters:

Name Type Description Default
alternative String? What to use instead. null
reason String? Why the declaration was deprecated. null
sinceVersion String? When the declaration was deprecated. null
removalVersion String? When the declaration will be removed. null

Targets:

  • Annotation
  • Attribute
  • Class
  • Enum
  • EnumVariant
  • Function
  • Parameter
  • Result
  • Segment
Stub code in maturity.sdsstub

annotation Deprecated(
    alternative: String? = null,
    reason: String? = null,
    sinceVersion: String? = null,
    removalVersion: String? = null,
)