浏览代码

添加 @Documented 注解,在 javadoc 中生成注解

James 5 年之前
父节点
当前提交
e02d3d6daf

+ 2 - 0
src/main/java/com/jfinal/aop/Before.java

@@ -16,6 +16,7 @@
 
 package com.jfinal.aop;
 
+import java.lang.annotation.Documented;
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Inherited;
 import java.lang.annotation.Retention;
@@ -26,6 +27,7 @@ import java.lang.annotation.Target;
  * Before is used to configure Interceptor and Validator.
  */
 @Inherited
+@Documented
 @Retention(RetentionPolicy.RUNTIME)
 @Target({ElementType.TYPE, ElementType.METHOD})
 public @interface Before {

+ 2 - 0
src/main/java/com/jfinal/aop/Clear.java

@@ -16,6 +16,7 @@
 
 package com.jfinal.aop;
 
+import java.lang.annotation.Documented;
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Inherited;
 import java.lang.annotation.Retention;
@@ -40,6 +41,7 @@ import java.lang.annotation.Target;
  * </pre>
  */
 @Inherited
+@Documented
 @Retention(RetentionPolicy.RUNTIME)
 @Target({ElementType.TYPE, ElementType.METHOD})
 public @interface Clear {

+ 2 - 0
src/main/java/com/jfinal/aop/Inject.java

@@ -1,5 +1,6 @@
 package com.jfinal.aop;
 
+import java.lang.annotation.Documented;
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Inherited;
 import java.lang.annotation.Retention;
@@ -10,6 +11,7 @@ import java.lang.annotation.Target;
  * Inject is used to inject dependent object
  */
 @Inherited
+@Documented
 @Retention(RetentionPolicy.RUNTIME)
 @Target({ElementType.FIELD})
 public @interface Inject {

+ 2 - 0
src/main/java/com/jfinal/aop/Singleton.java

@@ -1,5 +1,6 @@
 package com.jfinal.aop;
 
+import java.lang.annotation.Documented;
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Inherited;
 import java.lang.annotation.Retention;
@@ -10,6 +11,7 @@ import java.lang.annotation.Target;
  * Singleton 用于配置被注入对象是否为单例
  */
 @Inherited
+@Documented
 @Retention(RetentionPolicy.RUNTIME)
 @Target({ElementType.TYPE})
 public @interface Singleton {

+ 1 - 0
src/main/java/com/jfinal/ext/cors/EnableCORS.java

@@ -23,6 +23,7 @@ import java.lang.annotation.*;
  * 每个参数意义的详情 : https://developer.mozilla.org/en-US/docs/Glossary/CORS
  */
 @Inherited
+@Documented
 @Retention(RetentionPolicy.RUNTIME)
 @Target({ElementType.METHOD, ElementType.TYPE})
 public @interface EnableCORS {

+ 2 - 0
src/main/java/com/jfinal/plugin/activerecord/tx/TxConfig.java

@@ -16,6 +16,7 @@
 
 package com.jfinal.plugin.activerecord.tx;
 
+import java.lang.annotation.Documented;
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Inherited;
 import java.lang.annotation.Retention;
@@ -26,6 +27,7 @@ import java.lang.annotation.Target;
  * TxConfig is used to configure configName for Tx interceptor
  */
 @Inherited
+@Documented
 @Retention(RetentionPolicy.RUNTIME)
 @Target({ElementType.TYPE, ElementType.METHOD})
 public @interface TxConfig {

+ 2 - 0
src/main/java/com/jfinal/plugin/ehcache/CacheName.java

@@ -16,6 +16,7 @@
 
 package com.jfinal.plugin.ehcache;
 
+import java.lang.annotation.Documented;
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Inherited;
 import java.lang.annotation.Retention;
@@ -31,6 +32,7 @@ import java.lang.annotation.Target;
  * CacheInterceptor will use the actionKey as the cache name If the CacheName annotation not found. 
  */
 @Inherited
+@Documented
 @Retention(RetentionPolicy.RUNTIME)
 @Target({ElementType.TYPE, ElementType.METHOD})
 public @interface CacheName {