Annotation option 'mustBeDocumented': definition, mapping from Kotlin to Java Documented and back, tests

This commit is contained in:
Mikhail Glukhikh
2015-07-30 15:30:15 +03:00
parent dfaed3fef3
commit faac06ff7e
10 changed files with 156 additions and 13 deletions
@@ -0,0 +1,20 @@
// FILE: DocumentedAnnotations.java
import java.lang.annotation.*;
public class DocumentedAnnotations {
@Documented public @interface DocAnn;
public @interface NotDocAnn;
@Documented @Retention(RetentionPolicy.RUNTIME) public @interface RunDocAnn;
}
// FILE: DocumentedAnnotations.kt
DocumentedAnnotations.DocAnn class My
DocumentedAnnotations.NotDocAnn class Your
DocumentedAnnotations.RunDocAnn class His