From ec140b297beea7ea6577348c84c270048d219118 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Fri, 1 Jul 2022 17:48:08 -0400 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=9C=89=E5=85=B3=20Annotati?= =?UTF-8?q?on=EF=BC=88=E6=B3=A8=E8=A7=A3=EF=BC=89=20=E7=9A=84=E6=96=87?= =?UTF-8?q?=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- java/core/_README.md | 4 ++-- java/core/{annotation.md => core-java-annotations.md} | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) rename java/core/{annotation.md => core-java-annotations.md} (51%) diff --git a/java/core/_README.md b/java/core/_README.md index 35b908c..94f8081 100644 --- a/java/core/_README.md +++ b/java/core/_README.md @@ -1,9 +1,9 @@ # Java 核心编程 -[](annotation.md ':include') - [](core-java-8.md ':include') [](core-java-11.md ':include') +[](core-java-annotations.md ':include') + [](core-java-strings.md ':include') diff --git a/java/core/annotation.md b/java/core/core-java-annotations.md similarity index 51% rename from java/core/annotation.md rename to java/core/core-java-annotations.md index 90f7104..d082c46 100644 --- a/java/core/annotation.md +++ b/java/core/core-java-annotations.md @@ -3,4 +3,9 @@ Java 注解(Annotation)又称 Java 标注,是 JDK5.0 引入的一种注释 Java 语言中的类、方法、变量、参数和包等都可以被标注。和 Javadoc 不同,Java 标注可以通过反射获取标注内容。在编译器生成类文件时,标注可以被嵌入到字节码中。Java 虚拟机可以保留标注内容,在运行时可以获取到标注内容 。 当然它也支持自定义 Java 标注。 -* [Java @Deprecated Annotation(注解)](https://www.ossez.com/t/java-deprecated-annotation/13676) +- [Java @Override Annotation](https://www.baeldung.com/java-override) +- [Java @SuppressWarnings Annotation](https://www.baeldung.com/java-suppresswarnings) +- [Java @SafeVarargs Annotation](https://www.baeldung.com/java-safevarargs) +- [Java @Deprecated Annotation(注解)](https://www.ossez.com/t/java-deprecated-annotation/13676) +- [Overview of Java Built-in Annotations](https://www.baeldung.com/java-default-annotations) +- [Creating a Custom Annotation in Java](https://www.baeldung.com/java-custom-annotation)