Skip to content

Provide access to annotations on type parameters #1585

@mst-hivemind

Description

@mst-hivemind

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions