Map java.land.Deprecated to jet.deprecated

Change testData for deprecated annotation
 #KT-2947 Fixed
This commit is contained in:
Natalia.Ukhorskaya
2012-10-18 19:14:04 +04:00
parent f9c1c041d7
commit 62d8153ada
42 changed files with 107 additions and 98 deletions
@@ -1,6 +1,6 @@
class MyClass() {
val test = ""
[Deprecated] get
[deprecated("")] get
}
// TESTED_OBJECT_KIND: function
@@ -1,6 +1,6 @@
class MyClass() {
var test = ""
[Deprecated] set
[deprecated("")] set
}
// TESTED_OBJECT_KIND: function
@@ -1,6 +1,6 @@
class MyClass() { }
Deprecated fun MyClass.test() {}
deprecated("") fun MyClass.test() {}
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: namespace, test
@@ -1,5 +1,5 @@
class MyClass() {
Deprecated fun test() {}
deprecated("") fun test() {}
}
// TESTED_OBJECT_KIND: function
@@ -1,6 +1,6 @@
class MyClass() {
class object {
Deprecated fun test() {}
deprecated("") fun test() {}
}
}
@@ -1,6 +1,6 @@
class MyClass() {
val test: Int
[Deprecated] get(): Int { return 0 }
[deprecated("")] get(): Int { return 0 }
}
@@ -1,5 +1,5 @@
class MyClass() {
Deprecated val test = ""
deprecated("") val test = ""
}
@@ -1,4 +1,4 @@
class MyClass(Deprecated val test: Int) {}
class MyClass(deprecated("") val test: Int) {}
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: MyClass, getTest
@@ -1,6 +1,6 @@
class MyClass() {
var test = 1
[Deprecated] set(i: Int) { test = i }
[deprecated("")] set(i: Int) { test = i }
}
@@ -1,5 +1,5 @@
class MyClass() {
Deprecated var test = ""
deprecated("") var test = ""
}
@@ -1,4 +1,4 @@
class MyClass(Deprecated var test: Int) {}
class MyClass(deprecated("") var test: Int) {}
// TESTED_OBJECT_KIND: function
@@ -1,4 +1,4 @@
Deprecated fun test() {}
deprecated("") fun test() {}
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: namespace, test