In Kotlin, we can use the @Deprecated annotation to mark a class, function, property, variable, or parameter as deprecated . What makes this annotation interesting is not only the possibility of deprecation, but also of providing replacements with all the necessary imports.25 Eki 2017