Skip to content

Java: Detecting annotations on called library 3rd party #139

Discussion options

You must be logged in to vote

Yes, this works.
See here for the exact case you asked for.

The only thing that will obviously not work is the case of source annotation, i.e., @Retention(RetentionPolicy.SOURCE) because they will be discarded by the compiler.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by p0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants