[FIR] Add DEPRECATED_JAVA_ANNOTATION diagnostic
This commit is contained in:
committed by
TeamCityServer
parent
f9b601edae
commit
ae558c0290
+1
-1
@@ -2,4 +2,4 @@ import java.util.ArrayList
|
||||
|
||||
@<!NOT_AN_ANNOTATION_CLASS!>ArrayList<!><Int>(1, 1) fun b() {}
|
||||
@<!UNRESOLVED_REFERENCE!>Xoo<!>(<!UNRESOLVED_REFERENCE!>x<!>) fun c() {}
|
||||
@java.lang.Deprecated(<!TOO_MANY_ARGUMENTS, UNRESOLVED_REFERENCE!>x<!>) fun a() {}
|
||||
<!DEPRECATED_JAVA_ANNOTATION!>@java.lang.Deprecated(<!TOO_MANY_ARGUMENTS, UNRESOLVED_REFERENCE!>x<!>)<!> fun a() {}
|
||||
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
package a
|
||||
|
||||
import java.lang.Deprecated as deprecated
|
||||
import java.lang.SuppressWarnings as suppresswarnings
|
||||
|
||||
|
||||
@deprecated @suppresswarnings val s: String = "";
|
||||
|
||||
@deprecated @suppresswarnings fun main() {
|
||||
System.out.println("Hello, world!")
|
||||
}
|
||||
|
||||
class Test(@deprecated val s: String,
|
||||
@suppresswarnings val x : Int) {}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
package a
|
||||
|
||||
import java.lang.Deprecated as deprecated
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
annotation @java.lang.Deprecated class my
|
||||
@@ -1 +1,2 @@
|
||||
// FIR_IDENTICAL
|
||||
annotation <!DEPRECATED_JAVA_ANNOTATION!>@java.lang.Deprecated<!> class my
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
import java.lang.Deprecated as deprecated
|
||||
|
||||
@java.lang.Deprecated fun foo() {}
|
||||
|
||||
@deprecated fun foo1() {}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
import java.lang.Deprecated as deprecated
|
||||
|
||||
<!DEPRECATED_JAVA_ANNOTATION!>@java.lang.Deprecated<!> fun foo() {}
|
||||
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
import java.lang.annotation.Retention
|
||||
import java.lang.annotation.Target
|
||||
import java.lang.annotation.*
|
||||
|
||||
@java.lang.annotation.Retention(RetentionPolicy.CLASS)
|
||||
annotation class my
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR)
|
||||
annotation class my1
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
import java.lang.annotation.Retention
|
||||
import java.lang.annotation.Target
|
||||
import java.lang.annotation.*
|
||||
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
import java.lang.annotation.*
|
||||
|
||||
@java.lang.annotation.Target(ElementType.PACKAGE)
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
annotation class my
|
||||
|
||||
@java.lang.annotation.Retention(RetentionPolicy.SOURCE)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
annotation class your
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
import java.lang.annotation.*
|
||||
|
||||
<!DEPRECATED_JAVA_ANNOTATION!>@java.lang.annotation.Target(ElementType.PACKAGE)<!>
|
||||
|
||||
Reference in New Issue
Block a user