Inherited

This commit is contained in:
redkale
2024-01-15 10:00:13 +08:00
parent b17716780a
commit 4b7b140c7b
35 changed files with 6 additions and 52 deletions

View File

@@ -19,7 +19,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*
* @since 2.1.0
*/
@Inherited
@Documented
@Target({METHOD})
@Retention(RUNTIME)

View File

@@ -5,7 +5,6 @@ package org.redkale.annotation;
import java.lang.annotation.Documented;
import static java.lang.annotation.ElementType.PARAMETER;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Target;
@@ -20,7 +19,6 @@ import java.lang.annotation.Target;
*
* @since 2.8.0
*/
@Inherited
@Documented
@Target({PARAMETER})
@Retention(RUNTIME)

View File

@@ -5,7 +5,6 @@ package org.redkale.cache.spi;
import java.lang.annotation.Documented;
import static java.lang.annotation.ElementType.METHOD;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Target;
@@ -20,7 +19,6 @@ import org.redkale.service.LoadMode;
*
* @since 2.8.0
*/
@Inherited
@Documented
@Target({METHOD})
@Retention(RUNTIME)

View File

@@ -16,7 +16,6 @@ import static java.lang.annotation.RetentionPolicy.*;
* @author zhangjx
* @since 2.7.0
*/
@Inherited
@Documented
@Target({METHOD, FIELD})
@Retention(RUNTIME)
@@ -80,7 +79,6 @@ public @interface ConvertCoder {
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({METHOD, FIELD})
@Retention(RUNTIME)

View File

@@ -17,7 +17,6 @@ import static java.lang.annotation.RetentionPolicy.*;
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({METHOD, FIELD})
@Retention(RUNTIME)
@@ -60,7 +59,6 @@ public @interface ConvertColumn {
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({METHOD, FIELD})
@Retention(RUNTIME)

View File

@@ -36,7 +36,6 @@ public @interface ConvertDisabled {
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({METHOD, FIELD})
@Retention(RUNTIME)

View File

@@ -5,7 +5,6 @@ package org.redkale.lock.spi;
import java.lang.annotation.Documented;
import static java.lang.annotation.ElementType.METHOD;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Target;
@@ -19,7 +18,6 @@ import org.redkale.service.LoadMode;
*
* @since 2.8.0
*/
@Inherited
@Documented
@Target({METHOD})
@Retention(RUNTIME)

View File

@@ -19,7 +19,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({PARAMETER, FIELD})
@Retention(RUNTIME)

View File

@@ -5,10 +5,9 @@
*/
package org.redkale.net.http;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.*;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* 只能注解于RestService类的方法的String/byte[]/JavaBean参数或参数内的String/byte[]/JavaBean字段
@@ -20,7 +19,6 @@ import static java.lang.annotation.ElementType.*;
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({PARAMETER, FIELD})
@Retention(RUNTIME)

View File

@@ -5,9 +5,9 @@
*/
package org.redkale.net.http;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.*;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* 只能依附在Service实现类的public方法上, 当方法的返回值以JSON输出时对指定类型的转换设定。 <br>
@@ -18,7 +18,6 @@ import static java.lang.annotation.ElementType.*;
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({METHOD})
@Retention(RUNTIME)
@@ -68,7 +67,6 @@ public @interface RestConvert {
*/
String[] convertColumns() default {};
@Inherited
@Documented
@Target({METHOD})
@Retention(RUNTIME)

View File

@@ -19,7 +19,6 @@ import org.redkale.convert.*;
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({METHOD})
@Retention(RUNTIME)
@@ -32,7 +31,6 @@ public @interface RestConvertCoder {
Class<? extends SimpledCoder> coder();
@Inherited
@Documented
@Target({METHOD})
@Retention(RUNTIME)

View File

@@ -16,7 +16,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({PARAMETER, FIELD})
@Retention(RUNTIME)

View File

@@ -16,7 +16,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({PARAMETER, FIELD})
@Retention(RUNTIME)

View File

@@ -2,9 +2,9 @@
*/
package org.redkale.net.http;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.*;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* 只能注解于Service类的方法的String参数或参数内的String字段
@@ -17,7 +17,6 @@ import static java.lang.annotation.ElementType.*;
* @author zhangjx
* @since 2.7.0
*/
@Inherited
@Documented
@Target({PARAMETER, FIELD})
@Retention(RUNTIME)

View File

@@ -17,7 +17,6 @@ import static java.lang.annotation.RetentionPolicy.*;
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({METHOD})
@Retention(RUNTIME)
@@ -88,7 +87,6 @@ public @interface RestMapping {
*/
String example() default "";
@Inherited
@Documented
@Target({METHOD})
@Retention(RUNTIME)

View File

@@ -22,7 +22,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({METHOD})
@Retention(RUNTIME)

View File

@@ -20,7 +20,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({PARAMETER})
@Retention(RUNTIME)

View File

@@ -18,7 +18,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({PARAMETER, FIELD})
@Retention(RUNTIME)

View File

@@ -16,7 +16,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({PARAMETER, FIELD})
@Retention(RUNTIME)

View File

@@ -19,7 +19,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({PARAMETER, FIELD})
@Retention(RUNTIME)

View File

@@ -20,7 +20,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*
* @since 2.1.0
*/
@Inherited
@Documented
@Target({PARAMETER, FIELD})
@Retention(RUNTIME)

View File

@@ -56,7 +56,6 @@ public abstract class Sncp {
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({METHOD, TYPE})
@Retention(RUNTIME)

View File

@@ -5,7 +5,6 @@ package org.redkale.persistence;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@@ -23,7 +22,6 @@ import java.lang.annotation.Target;
*
* @since 2.8.0
*/
@Inherited
@Documented
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)

View File

@@ -28,7 +28,6 @@ import org.redkale.util.RedkaleClassLoader;
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({FIELD})
@Retention(RUNTIME)
@@ -39,7 +38,6 @@ public @interface RetLabel {
String locale() default "";
@Inherited
@Documented
@Target({FIELD})
@Retention(RUNTIME)

View File

@@ -3,9 +3,9 @@
*/
package org.redkale.service;
import java.lang.annotation.*;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.*;
/**
* 用于自定义SncpActionid默认会根据Method.toString来计算actionid
@@ -16,7 +16,6 @@ import java.lang.annotation.*;
* @author zhangjx
* @since 2.8.0
*/
@Inherited
@Documented
@Target({METHOD})
@Retention(RUNTIME)

View File

@@ -5,9 +5,9 @@
*/
package org.redkale.service;
import java.lang.annotation.*;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.*;
/**
* SNCP协议中用于CompletionHandler回调函数中的attach字段。
@@ -17,7 +17,6 @@ import java.lang.annotation.*;
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({PARAMETER})
@Retention(RUNTIME)

View File

@@ -15,7 +15,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
* <p> 详情见: https://redkale.org
* @author zhangjx
*/
@Inherited
@Documented
@Target({FIELD})
@Retention(RUNTIME)

View File

@@ -16,7 +16,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
* 详情见: https://redkale.org
* @author zhangjx
*/
@Inherited
@Documented
@Target({PARAMETER})
@Retention(RUNTIME)

View File

@@ -16,7 +16,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
* 详情见: https://redkale.org
* @author zhangjx
*/
@Inherited
@Documented
@Target({PARAMETER})
@Retention(RUNTIME)

View File

@@ -19,7 +19,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*
* @since 2.1.0
*/
@Inherited
@Documented
@Target({PARAMETER})
@Retention(RUNTIME)

View File

@@ -19,7 +19,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({FIELD})
@Retention(RUNTIME)

View File

@@ -62,7 +62,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({FIELD})
@Retention(RUNTIME)

View File

@@ -21,7 +21,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({FIELD})
@Retention(RUNTIME)

View File

@@ -19,7 +19,6 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*
* @author zhangjx
*/
@Inherited
@Documented
@Target({METHOD})
@Retention(RUNTIME)

View File

@@ -5,9 +5,9 @@
*/
package org.redkale.util;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.*;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* 接收命令的标记, 只能标记在本地模式下Service里参数为(String)或(String, String[])的public方法上
@@ -22,7 +22,6 @@ import static java.lang.annotation.ElementType.*;
* @since 2.1.0
*/
@Deprecated(since = "2.8.0")
@Inherited
@Documented
@Target({METHOD})
@Retention(RUNTIME)