[JSR308] array-valued annotations

Pavel Krupets pavel.krupets at db.com
Thu Jan 25 02:51:13 EST 2007


Hello,

I don't think it's appropriate to use annotations like:
"Document[][@Readonly]". What I mean is that there is no much sense in
specifying different annotations for different dimensions of the array. If
such behavior is needed other types can be used (like List<...>, etc). I
think annotations should be used only with:

- array as an object (like: @NonNull @Readonly Document[][] doc = ...)
- objects which are stored inside arrays (like: Document @NonNull
@Readonly [][] doc = ...)

The reason behind this is that array (one or multi-dimensional) is an
'atomic' type which has type of stored object and dimensions. Just want to
keep things simple.

IMHO! Thank you! 

With regards,
Pavel Krupets

---

This e-mail may contain confidential and/or privileged information. If you 
are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail. Any 
unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.



More information about the JSR308 mailing list