You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on some ArchUnit checks (I find the tool really useful so far!), I found that annotations with a target of @Target(TYPE_USE) are ignored (for example with @Nullablefrom Jspecify).
To reproduce, I created my own annotation:
@Target({TYPE_USE})
@Retention(RUNTIME)
public @interface Foo {}
Inspecting an ArchUnit JavaField resulting from importing a class with a field annotated with this annotation, no JavaAnnotations are present.
When adding or using FIELD as target, the JavaAnnotation is present on the JavaField instance.
@Target({TYPE_USE, FIELD})
@Retention(RUNTIME)
public @interface Foo {}
It would be great if these annotations were imported!
The text was updated successfully, but these errors were encountered:
Hi,
While working on some ArchUnit checks (I find the tool really useful so far!), I found that annotations with a target of
@Target(TYPE_USE)
are ignored (for example with@Nullable
from Jspecify).To reproduce, I created my own annotation:
Inspecting an ArchUnit
JavaField
resulting from importing a class with a field annotated with this annotation, noJavaAnnotation
s are present.When adding or using
FIELD
as target, theJavaAnnotation
is present on theJavaField
instance.It would be great if these annotations were imported!
The text was updated successfully, but these errors were encountered: