Get rid of deprecated annotations in testData

This commit is contained in:
Denis Zharkov
2015-09-14 17:40:41 +03:00
parent eebe66e041
commit bae3320d52
257 changed files with 433 additions and 463 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
import kotlin.jvm.JvmStatic
<error descr="[WRONG_ANNOTATION_TARGET] This annotation is not applicable to target 'class'">JvmStatic</error>
<error descr="[WRONG_ANNOTATION_TARGET] This annotation is not applicable to target 'class'">@JvmStatic</error>
class A {
<error descr="[WRONG_ANNOTATION_TARGET] This annotation is not applicable to target 'object'">JvmStatic</error>
<error descr="[WRONG_ANNOTATION_TARGET] This annotation is not applicable to target 'object'">@JvmStatic</error>
companion object {
@JvmStatic fun a1() {
@@ -29,7 +29,7 @@ class A {
}
}
<error descr="[WRONG_ANNOTATION_TARGET] This annotation is not applicable to target 'interface'">JvmStatic</error>
<error descr="[WRONG_ANNOTATION_TARGET] This annotation is not applicable to target 'interface'">@JvmStatic</error>
interface B {
companion object {
<error descr="[JVM_STATIC_NOT_IN_OBJECT] Only functions in named objects and companion objects of classes can be annotated with 'JvmStatic'">@JvmStatic fun a1()</error> {
@@ -2,10 +2,10 @@ package test
import dependency.*
data A("a") B(1) C class Annotations {
data @A("a") @B(1) @C class Annotations {
inline A("f") B(2) C fun f(A("i") B(3) C Deprecated("1") i: @A("int") Int) {
inline @A("f") @B(2) @C fun f(@A("i") @B(3) @C @Deprecated("1") i: @A("int") Int) {
}
inline A("p") B(3) C val p: @B(4) Int = 2
inline @A("p") @B(3) @C val p: @B(4) Int = 2
}
@@ -4,7 +4,7 @@ class SecondaryConstructors(x: Boolean) {
init {
}
anno constructor(x: String) : this(x == "abc") {
@anno constructor(x: String) : this(x == "abc") {
}
init {
@@ -19,7 +19,7 @@ class SecondaryConstructors(x: Boolean) {
}
class Nested {
anno constructor(z: Int) {}
@anno constructor(z: Int) {}
internal constructor() {}
}
}
+1 -1
View File
@@ -33,4 +33,4 @@ package testData.libraries
[public fun processDouble(d: testData.libraries.Double): kotlin.Unit { /* compiled code */ }]
[kotlin.inline public fun <T> T.filter(predicate: (T) -> kotlin.Boolean): T? { /* compiled code */ }]
[@kotlin.inline public fun <T> T.filter(predicate: (T) -> kotlin.Boolean): T? { /* compiled code */ }]
@@ -1,13 +1,13 @@
a public class Annotations private @a constructor(private @property:a @param:a val c1: Int, @property:a @param:a val c2: Int) {
@a public class Annotations private @a constructor(private @property:a @param:a val c1: Int, @property:a @param:a val c2: Int) {
protected a fun f() {
protected @a fun f() {
}
private fun annotationWithVararg(a vararg i: Int) {}
private fun annotationWithVararg(@a vararg i: Int) {}
b(E.E1) private val c: Int = 1
@b(E.E1) private val c: Int = 1
a b(E.E2) public fun g(@a p1: E) {
@a @b(E.E2) public fun g(@a p1: E) {
}
var withCustomAccessors: Int = 0
@@ -16,7 +16,7 @@ a public class Annotations private @a constructor(private @property:a @param:a v
@a private set
private b(E.E2) companion object {
private @b(E.E2) companion object {
}
@@ -4,7 +4,7 @@ class SecondaryConstructors(x: Boolean) {
init {
}
anno constructor(x: String) : this(x == "abc") {
@anno constructor(x: String) : this(x == "abc") {
}
init {
@@ -19,7 +19,7 @@ class SecondaryConstructors(x: Boolean) {
}
class Nested {
anno constructor(z: Int) {}
@anno constructor(z: Int) {}
internal constructor() {}
}
}
@@ -4,7 +4,7 @@ import d.e.f.*
@property:a @property:b val i: Int = 0
a b fun f(@a @b p1: C): Int = 0
@a @b fun f(@a @b p1: C): Int = 0
class C
@@ -1,4 +1,4 @@
fun foo() {
<caret>@volatile var v: Int
<caret>@Volatile var v: Int
v = 1
}
@@ -1,3 +1,3 @@
fun foo() {
<caret>@volatile var v: Int = 1
<caret>@Volatile var v: Int = 1
}
@@ -2,7 +2,7 @@ package test.kotlin
interface A
kotlin.jvm.jvmOverloads
@kotlin.jvm.JvmOverloads
public fun foo<T : A>(k: Class<T>, a: A, b: Boolean = false, s: String="hello"): List<T> {
println("$b $s")
return listOf()
@@ -1,4 +1,4 @@
// "Mark with @HiddenDeclaration and @deprecated" "true"
// "Mark with @HiddenDeclaration and @Deprecated" "true"
import java.io.File
val File.<caret>name: String
@@ -1,7 +1,7 @@
// "Mark with @HiddenDeclaration and @deprecated" "true"
// "Mark with @HiddenDeclaration and @Deprecated" "true"
import java.io.File
@HiddenDeclaration
@deprecated("Is replaced with automatic synthetic extension", ReplaceWith("name"))
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("name"))
val File.<caret>name: String
get() = getName()
@@ -1,4 +1,4 @@
// "Make 'A' open" "true"
deprecated("") class A() {
@Deprecated("") class A() {
<caret>open fun foo() {}
}
@@ -1,4 +1,4 @@
// "Make 'A' open" "true"
deprecated("") open class A() {
<caret>open fun foo() {}
@Deprecated("") open class A() {
open fun foo() {}
}