Merge two deprecation diagnostics into one DEPRECATION
This also fixes weird suppressions in user code: instead of
«@Suppress("DEPRECATED_SYMBOL_WITH_MESSAGE")» you should now use
«@Suppress("DEPRECATION")»
This commit is contained in:
committed by
Andrey Breslav
parent
c817949221
commit
34267e436e
+4
-4
@@ -1,10 +1,10 @@
|
||||
fun test() {
|
||||
val c = MyClass()
|
||||
c.<warning descr="[DEPRECATED_SYMBOL_WITH_MESSAGE] 'getter for test1: String' is deprecated. Use A instead">test1</warning>
|
||||
c.<warning descr="[DEPRECATED_SYMBOL_WITH_MESSAGE] 'getter for test2: String' is deprecated. Use A instead">test2</warning>
|
||||
c.<warning descr="[DEPRECATION] 'getter for test1: String' is deprecated. Use A instead">test1</warning>
|
||||
c.<warning descr="[DEPRECATION] 'getter for test2: String' is deprecated. Use A instead">test2</warning>
|
||||
c.test2 = ""
|
||||
|
||||
c.<warning descr="[DEPRECATED_SYMBOL_WITH_MESSAGE] 'test3: String' is deprecated. Use A instead">test3</warning>
|
||||
c.<warning descr="[DEPRECATION] 'test3: String' is deprecated. Use A instead">test3</warning>
|
||||
}
|
||||
|
||||
class MyClass() {
|
||||
@@ -19,4 +19,4 @@ class MyClass() {
|
||||
}
|
||||
|
||||
// NO_CHECK_INFOS
|
||||
// NO_CHECK_WEAK_WARNINGS
|
||||
// NO_CHECK_WEAK_WARNINGS
|
||||
|
||||
Reference in New Issue
Block a user