There is currently no way in ArchUnit (unless I missed something) to access annotations on type parameters.
Consider this snippet:
record MyRecord(List<@Valid Inner> items) {}
It would be nice to have some way to check the annotations ofList's type argument Inner. As it is now, one has to resort to the Java reflection API.
There is currently no way in ArchUnit (unless I missed something) to access annotations on type parameters.
Consider this snippet:
record MyRecord(List<@Valid Inner> items) {}It would be nice to have some way to check the annotations of
List's type argumentInner. As it is now, one has to resort to the Java reflection API.