29bf24b7d3
Retain obsolete versions until support for methods in Java annotations is dropped
13 lines
220 B
Java
Vendored
13 lines
220 B
Java
Vendored
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@interface JavaAnn {
|
|
Class<?> value();
|
|
}
|
|
|
|
class OK {}
|
|
|
|
@JavaAnn(OK.class)
|
|
class MyJavaClass {}
|