On 16.05.2018 23:17, MG wrote:
[...]
Btw, Jochen, can you give an example for using this syntax for array type annotation arguments, which you mentioned a week or so back ?

basically two variants:

@Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER })

or maybe:

@AnnotationCollector({EqualsAndHashCode, ToString})

and with nested annotations:

@TakesAnArrayOfNestedAsDefault({
    @Nested(message = "nested 1"),
    @Nested(message = "nested 2"),
})

But I am actually about to change my mind, because they have the same issue with Closure

bye Jochen


Reply via email to