20 lines
393 B
Plaintext
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[]
|