Fix collecting source retention annotations
#KT-12187 fixed
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
public @interface ClassAnnotation {}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
import java.lang.annotation.*;
|
||||
|
||||
public @interface DefaultAnnotation {}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface RuntimeAnnotation {}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
public @interface SourceAnnotation {}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
a DefaultAnnotation 0
|
||||
c 0 DafaultUsage
|
||||
a SourceAnnotation 1
|
||||
c 1 SourceUsage
|
||||
a ClassAnnotation 2
|
||||
c 2 ClassUsage
|
||||
a RuntimeAnnotation 3
|
||||
c 3 RuntimeUsage
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
@DefaultAnnotation
|
||||
class DafaultUsage
|
||||
|
||||
@SourceAnnotation
|
||||
class SourceUsage
|
||||
|
||||
@ClassAnnotation
|
||||
class ClassUsage
|
||||
|
||||
@RuntimeAnnotation
|
||||
class RuntimeUsage
|
||||
Reference in New Issue
Block a user