groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <blackd...@gmx.org>
Subject Re: [VOTE] Support Java-like array
Date Wed, 16 May 2018 23:31:21 GMT
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



Mime
View raw message