lundi 2 mars 2020

How to get annotations in nested parameter parameter?

If I have a function like this,

public void park( List< @myNote("list") List< @myNote("integer") Integer>> l){ System.out.println("park"); }

If I use Parameter.getAnnotations() and Paramter.getDeclaredAnnotation, I can only get @myNote("list"). Are any ways to get the annotation @myNote("integer")?

This may be related to How to get all types of the inner structures of a nested type?





Aucun commentaire:

Enregistrer un commentaire