14 lines
373 B
Java
14 lines
373 B
Java
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
import java.lang.annotation.ElementType;
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@Target(ElementType.TYPE)
|
|
@CustomAnnotationAnnotation
|
|
public @interface CustomAnnotation {
|
|
public CustomAnnotationType type();
|
|
|
|
public String name() default "Bob";
|
|
}
|
|
|