rspec/rules/S1874/kotlin/rule.adoc
2023-10-11 19:48:17 +02:00

20 lines
393 B
Plaintext

== Why is this an issue?
include::../description.adoc[]
[source,kotlin]
----
@Deprecated("This function is deprecated, use newFunction instead", ReplaceWith("newFunction()"))
fun oldFunction() {
println("This is the old function.")
}
fun newFunction() {
println("This is the new function.")
}
oldFunction() // Noncompliant: "oldFunction is deprecated"
----
include::../see.adoc[]