From 45e8a557788a8dbf9fd134df6f8e99f456e3324f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Boutemy?= Date: Mon, 4 Dec 2017 09:31:47 +0100 Subject: [PATCH] #43 mark HawtJNI annotations @Documented --- .../src/main/java/org/fusesource/hawtjni/runtime/JniArg.java | 3 +++ .../src/main/java/org/fusesource/hawtjni/runtime/JniClass.java | 3 +++ .../src/main/java/org/fusesource/hawtjni/runtime/JniField.java | 3 +++ .../main/java/org/fusesource/hawtjni/runtime/JniMethod.java | 3 +++ .../src/main/java/org/fusesource/hawtjni/runtime/T32.java | 3 +++ 5 files changed, 15 insertions(+) diff --git a/hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/JniArg.java b/hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/JniArg.java index 32f001dd..50593d7d 100644 --- a/hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/JniArg.java +++ b/hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/JniArg.java @@ -17,6 +17,9 @@ import static java.lang.annotation.ElementType.*; +import java.lang.annotation.Documented; + +@Documented @Target({PARAMETER}) @Retention(RetentionPolicy.RUNTIME) public @interface JniArg { diff --git a/hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/JniClass.java b/hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/JniClass.java index bb092c1d..c66338cc 100644 --- a/hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/JniClass.java +++ b/hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/JniClass.java @@ -17,6 +17,9 @@ import static java.lang.annotation.ElementType.*; +import java.lang.annotation.Documented; + +@Documented @Target({TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface JniClass { diff --git a/hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/JniField.java b/hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/JniField.java index 4008284d..fee99f27 100644 --- a/hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/JniField.java +++ b/hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/JniField.java @@ -14,10 +14,13 @@ import static java.lang.annotation.ElementType.*; +import java.lang.annotation.Documented; + /** * * @author Hiram Chirino */ +@Documented @Target({FIELD}) @Retention(RetentionPolicy.RUNTIME) public @interface JniField { diff --git a/hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/JniMethod.java b/hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/JniMethod.java index 61bb28e4..67c629fc 100644 --- a/hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/JniMethod.java +++ b/hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/JniMethod.java @@ -14,10 +14,13 @@ import static java.lang.annotation.ElementType.*; +import java.lang.annotation.Documented; + /** * * @author Hiram Chirino */ +@Documented @Target({METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface JniMethod { diff --git a/hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/T32.java b/hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/T32.java index 325a3fdc..dbf6fb9e 100644 --- a/hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/T32.java +++ b/hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/T32.java @@ -13,6 +13,9 @@ import java.lang.annotation.Target; import static java.lang.annotation.ElementType.*; +import java.lang.annotation.Documented; + +@Documented @Target({FIELD, METHOD, PARAMETER, LOCAL_VARIABLE}) @Retention(RetentionPolicy.RUNTIME) public @interface T32 {