kotlin.ReplaceWith argument in its
kotlin.deprecated annotation and there is a suggestion to add one based on their body.
Kotlin allows to provide a automatized replacement for deprecated declarations by providing a replaceWith argument.
It is recommended to provide it so users will be able to fix deprecation issues in their code easier.
Example:
@Deprecated("Use refined() instead.")
fun deprecated() = refined()
fun refined() = 42
A quick-fix is suggested to add a missing ReplaceWith() argument:
@Deprecated("Use refined() instead.", ReplaceWith("refined()"))
fun deprecated() = refined()
fun refined() = 42