java经常使用注解

java 经常使用的Annotation:java

@Deprecated -- @Deprecated 所标注内容,再也不被建议使用。
@Override -- @Override 只能标注方法,表示该方法覆盖父类中的方法。
@Documented -- @Documented 所标注内容,能够出如今javadoc中。
@Inherited -- @Inherited只能被用来标注“Annotation类型”,它所标注的Annotation具备继承性。
@Retention -- @Retention只能被用来标注“Annotation类型”,并且它被用来指定Annotation的RetentionPolicy属性。
@Target -- @Target只能被用来标注“Annotation类型”,并且它被用来指定Annotation的ElementType属性。
@SuppressWarnings -- @SuppressWarnings 所标注内容产生的警告,编译器会对这些警告保持静默。ide

lomhook 经常使用的Annotation:
https://zhuanlan.zhihu.com/p/...继承

相关文章
相关标签/搜索