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 {}
|
||||
plugins/annotation-collector/testData/collectToFile/retentionPoliciesJavaAnnotations/annotations.txt
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
a DefaultAnnotation 0
|
||||
c 0 DafaultUsage
|
||||
a ClassAnnotation 1
|
||||
c 1 ClassUsage
|
||||
a RuntimeAnnotation 2
|
||||
c 2 RuntimeUsage
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
@DefaultAnnotation
|
||||
class DafaultUsage
|
||||
|
||||
@SourceAnnotation
|
||||
class SourceUsage
|
||||
|
||||
@ClassAnnotation
|
||||
class ClassUsage
|
||||
|
||||
@RuntimeAnnotation
|
||||
class RuntimeUsage
|
||||
+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
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
annotation class DefaultAnnotation
|
||||
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
annotation class SourceAnnotation
|
||||
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
annotation class BinaryAnnotation
|
||||
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
annotation class RuntimeAnnotation
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
a java.lang.annotation.Retention 0
|
||||
c 0 DefaultAnnotation
|
||||
a kotlin.annotation.Retention 1
|
||||
c 1 SourceAnnotation
|
||||
c 0 SourceAnnotation
|
||||
c 1 BinaryAnnotation
|
||||
c 0 BinaryAnnotation
|
||||
c 1 RuntimeAnnotation
|
||||
c 0 RuntimeAnnotation
|
||||
a DefaultAnnotation 2
|
||||
c 2 DafaultUsage
|
||||
a BinaryAnnotation 3
|
||||
c 3 BinaryUsage
|
||||
a RuntimeAnnotation 4
|
||||
c 4 RuntimeUsage
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
@DefaultAnnotation
|
||||
class DafaultUsage
|
||||
|
||||
@SourceAnnotation
|
||||
class SourceUsage
|
||||
|
||||
@BinaryAnnotation
|
||||
class BinaryUsage
|
||||
|
||||
@RuntimeAnnotation
|
||||
class RuntimeUsage
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
annotation class DefaultAnnotation
|
||||
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
annotation class SourceAnnotation
|
||||
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
annotation class BinaryAnnotation
|
||||
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
annotation class RuntimeAnnotation
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
a java.lang.annotation.Retention 0
|
||||
c 0 DefaultAnnotation
|
||||
a kotlin.annotation.Retention 1
|
||||
c 1 SourceAnnotation
|
||||
c 0 SourceAnnotation
|
||||
c 1 BinaryAnnotation
|
||||
c 0 BinaryAnnotation
|
||||
c 1 RuntimeAnnotation
|
||||
c 0 RuntimeAnnotation
|
||||
a DefaultAnnotation 2
|
||||
c 2 DafaultUsage
|
||||
a SourceAnnotation 3
|
||||
c 3 SourceUsage
|
||||
a BinaryAnnotation 4
|
||||
c 4 BinaryUsage
|
||||
a RuntimeAnnotation 5
|
||||
c 5 RuntimeUsage
|
||||
plugins/annotation-collector/testData/collectToFile/retentionPoliciesKotlinAnnotationsStubs/usage.kt
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
@DefaultAnnotation
|
||||
class DafaultUsage
|
||||
|
||||
@SourceAnnotation
|
||||
class SourceUsage
|
||||
|
||||
@BinaryAnnotation
|
||||
class BinaryUsage
|
||||
|
||||
@RuntimeAnnotation
|
||||
class RuntimeUsage
|
||||
Reference in New Issue
Block a user