Mapping of JavaDoc deprecated to Kotlin Deprecated + a pair of tests
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// !DIAGNOSTICS: -NO_VALUE_FOR_PARAMETER
|
||||
// FILE: A.java
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public class A {
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public String getFoo(String text) {
|
||||
return text;
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: B.kt
|
||||
|
||||
class B(private val foo: String) : <!DEPRECATED_SYMBOL_WITH_MESSAGE!>A<!>() {
|
||||
override fun getFoo(text: String): String = super.<!DEPRECATED_SYMBOL_WITH_MESSAGE!>getFoo<!>(text + foo)
|
||||
}
|
||||
Reference in New Issue
Block a user