This is an automated email from the ASF dual-hosted git repository. lprimak pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/shiro.git
The following commit(s) were added to refs/heads/main by this push: new b1dff045f enh: added @Documented and @Inherited meta-annotations to CDI annotations b1dff045f is described below commit b1dff045f7a982f80c3063b8f0fa25684eb54176 Author: lprimak <le...@flowlogix.com> AuthorDate: Mon Sep 4 01:40:55 2023 -0500 enh: added @Documented and @Inherited meta-annotations to CDI annotations --- .../java/org/apache/shiro/cdi/annotations/NoSessionCreation.java | 4 ++++ .../src/main/java/org/apache/shiro/cdi/annotations/Principal.java | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/support/cdi/src/main/java/org/apache/shiro/cdi/annotations/NoSessionCreation.java b/support/cdi/src/main/java/org/apache/shiro/cdi/annotations/NoSessionCreation.java index fe3dc15e3..ca26c9c57 100644 --- a/support/cdi/src/main/java/org/apache/shiro/cdi/annotations/NoSessionCreation.java +++ b/support/cdi/src/main/java/org/apache/shiro/cdi/annotations/NoSessionCreation.java @@ -16,6 +16,8 @@ package org.apache.shiro.cdi.annotations; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.ElementType.PARAMETER; +import java.lang.annotation.Documented; +import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @@ -35,5 +37,7 @@ import javax.inject.Qualifier; */ @Qualifier @Retention(RetentionPolicy.RUNTIME) +@Inherited +@Documented @Target({METHOD, FIELD, PARAMETER}) public @interface NoSessionCreation { } diff --git a/support/cdi/src/main/java/org/apache/shiro/cdi/annotations/Principal.java b/support/cdi/src/main/java/org/apache/shiro/cdi/annotations/Principal.java index 3e9e283c8..396fc337d 100644 --- a/support/cdi/src/main/java/org/apache/shiro/cdi/annotations/Principal.java +++ b/support/cdi/src/main/java/org/apache/shiro/cdi/annotations/Principal.java @@ -16,8 +16,8 @@ package org.apache.shiro.cdi.annotations; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.ElementType.PARAMETER; - import java.lang.annotation.Documented; +import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @@ -36,6 +36,7 @@ import javax.inject.Qualifier; */ @Qualifier @Retention(RetentionPolicy.RUNTIME) -@Target({METHOD, FIELD, PARAMETER}) +@Inherited @Documented +@Target({METHOD, FIELD, PARAMETER}) public @interface Principal { }