@interface 声明注解,自动继承java.lang.annotation.Annotation接口
格式:public @interface 注解名{定义内容}
ElementType.METHOD)
(RetentionPolicy.SOURCE)
public @interface MyOverride {
}
(
微信扫一扫
@interface 声明注解,自动继承java.lang.annotation.Annotation接口
格式:public @interface 注解名{定义内容}
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.SOURCE)
public @interface MyOverride {
}
相关推荐