添加元注解。

feature/net-util
ZhouXY108 2023-07-06 10:06:08 +08:00
parent 98bfdfc6aa
commit b0a5255fbc
2 changed files with 14 additions and 0 deletions

View File

@ -16,6 +16,11 @@
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;
/**
*
* <p></p>
@ -23,5 +28,7 @@ package xyz.zhouxy.plusone.commons.annotation;
* @author <a href="https://gitee.com/zhouxy108">ZhouXY</a>
* @since 0.1.0
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.SOURCE)
public @interface Overridable {
}

View File

@ -16,11 +16,18 @@
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;
/**
* ValueObject -
*
* @author <a href="https://gitee.com/zhouxy108">ZhouXY</a>
* @since 0.1.0
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface ValueObject {
}