Skip to content

Commit 3b635b4

Browse files
author
Edwin Wu
committed
README
1 parent cf424c1 commit 3b635b4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Annotations/README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
1. 能够读懂别人使用注解实现的开源库
1313
2. 让编程变得更加简洁
1414
* 注解的分类
15-
1. 标准注解:
15+
* 标准注解:
1616
1. @Override:重写函数
1717
2. @Deprecated:不鼓励使用(有更好方式、使用有风险或已不在维护)
1818
3. @SuppressWarnings:忽略某项Warning
19-
2. 元注解
20-
1. @Retention
19+
* 元注解
20+
* @Retention
2121
1. SOURCE:Annotation信息仅存在于编译器处理期间,编译器处理完之后就没有该Annotation信息了(源文件保留)
2222
2. CLASS:编译器将Annotation存储于类对应的.class文件中。默认行为(class保留)
2323
3. RUNTIME:编译器将Annotation存储于class文件中,并且可由JVM读入(运行时保留)
24-
2. @Target
24+
* @Target
2525
1. TYPE:类、接口(包括注释类型)或枚举声明
2626
2. FIELD:字段声明(包括枚举常量)
2727
3. METHOD:方法声明
@@ -30,9 +30,9 @@
3030
6. LOCAL_VARIABLE:局部变量声明
3131
7. ANNOTATION_TYPE:注释类型声明
3232
8. PACKAGE:包声明
33-
3. @Inherited
34-
4. @Documented
35-
3. 自定义注解
33+
* @Inherited
34+
* @Documented
35+
* 自定义注解
3636
1. 源码时
3737
2. 编译时
3838
3. 运行时

0 commit comments

Comments
 (0)