Nikky
11/22/2020, 3:48 AMList<@MyAnnotation String>
and there seems to be a target for that: AnnotationTarget.TYPE
but i am not entirely sure this is available at runtime or how to retrieve thisi n Lists and Maps
(the only way i can guess that this is the right target is because idea autofixes this for me)
there is also the target TYPE_PARAMETER
which is labeled as unsupported yet
if this is truly unsupported then the best option would be some wrapper annotations like @ListElement
, @MapKey
, @MapValue
but the limitations of no supertypes on annotations and cannot use Array<Annotation>
as parameter would force me to add a field for every annotation type i want to add
and then i cannot have default values on annotation classes.. leading the user to have to add 20+ (exaggerated) empty arays in the arguments
any suggestions for how to solve this.. cleanly ?