mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-23 00:21:31 +00:00
43 lines
619 B
Java
Vendored
43 lines
619 B
Java
Vendored
// SKIP_IN_RUNTIME_TEST
|
|
|
|
package test;
|
|
|
|
import java.lang.annotation.*;
|
|
|
|
public class AnnotationRetentions {
|
|
|
|
public @interface BaseAnnotation {
|
|
|
|
}
|
|
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface SourceAnnotation {
|
|
|
|
}
|
|
|
|
@Retention(RetentionPolicy.CLASS)
|
|
public @interface BinaryAnnotation {
|
|
|
|
}
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
public @interface RuntimeAnnotation {
|
|
|
|
}
|
|
|
|
@BaseAnnotation class BaseClass {
|
|
|
|
}
|
|
|
|
@SourceAnnotation class SourceClass {
|
|
|
|
}
|
|
|
|
@BinaryAnnotation class BinaryClass {
|
|
|
|
}
|
|
|
|
@RuntimeAnnotation class RuntimeClass {
|
|
|
|
}
|
|
} |