From b2ece2fab5ccbcb52b2c002be80881d4bb094dbe Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Sun, 7 Apr 2024 16:14:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B3=A8=E8=A7=A3=E3=80=82?= =?UTF-8?q?=E5=8F=AF=E4=BD=BF=E7=94=A8=20JavaDoc=20=E6=A0=87=E8=AE=B0?= =?UTF-8?q?=E6=89=80=E8=A6=86=E5=86=99=E7=9A=84=E7=88=B6=E7=B1=BB=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plusone/commons/annotation/DefinedIn.java | 12 ----- .../commons/annotation/ExplicitImplTest.java | 45 ------------------- 2 files changed, 57 deletions(-) delete mode 100644 src/main/java/xyz/zhouxy/plusone/commons/annotation/DefinedIn.java delete mode 100644 src/test/java/xyz/zhouxy/plusone/commons/annotation/ExplicitImplTest.java diff --git a/src/main/java/xyz/zhouxy/plusone/commons/annotation/DefinedIn.java b/src/main/java/xyz/zhouxy/plusone/commons/annotation/DefinedIn.java deleted file mode 100644 index eb21c73..0000000 --- a/src/main/java/xyz/zhouxy/plusone/commons/annotation/DefinedIn.java +++ /dev/null @@ -1,12 +0,0 @@ -package xyz.zhouxy.plusone.commons.annotation; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -@Target(ElementType.METHOD) -@Retention(RetentionPolicy.SOURCE) -public @interface DefinedIn { - Class[] value(); -} diff --git a/src/test/java/xyz/zhouxy/plusone/commons/annotation/ExplicitImplTest.java b/src/test/java/xyz/zhouxy/plusone/commons/annotation/ExplicitImplTest.java deleted file mode 100644 index ab91be7..0000000 --- a/src/test/java/xyz/zhouxy/plusone/commons/annotation/ExplicitImplTest.java +++ /dev/null @@ -1,45 +0,0 @@ -package xyz.zhouxy.plusone.commons.annotation; - -import static org.junit.jupiter.api.Assertions.*; - -import org.junit.jupiter.api.Test; - -class ExplicitImplTest { - - @Test - void test() { - - } -} - -interface A { - - void fooA(); - - void fooAll(); -} - -interface B { - - void fooB(); - - void fooAll(); -} - -class C implements A, B { - - @DefinedIn(A.class) - @Override - public void fooA() { - } - - @DefinedIn(B.class) - @Override - public void fooB() { - } - - @DefinedIn({ A.class, B.class }) - @Override - public void fooAll() { - } -}