From fc848eadc8f436036acb3b709ffeb225902fda7e Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Sat, 29 Apr 2023 17:10:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Overridable=20=E6=B3=A8?= =?UTF-8?q?=E8=A7=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zhouxy/plusone/commons/annotation/Overridable.java | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/main/java/xyz/zhouxy/plusone/commons/annotation/Overridable.java diff --git a/src/main/java/xyz/zhouxy/plusone/commons/annotation/Overridable.java b/src/main/java/xyz/zhouxy/plusone/commons/annotation/Overridable.java new file mode 100644 index 0000000..afb2163 --- /dev/null +++ b/src/main/java/xyz/zhouxy/plusone/commons/annotation/Overridable.java @@ -0,0 +1,10 @@ +package xyz.zhouxy.plusone.commons.annotation; + +/** + * 标识该方法是可覆写的。不带 final 的方法都是可被子类覆写的,该注解用于提醒、强调父类虽然有默认实现,但子类可以根据自己的需要覆写。 + * + * @author ZhouXY + * @since 0.1.0 + */ +public @interface Overridable { +}