ITEM 39: PREFER ANNOTATIONS TO NAMING PATTERNS
185
The syntax for array parameters in annotations is flexible. It is optimized for
single-element arrays. All of the previous
ExceptionTest
annotations are still
valid with the new array-parameter version of
ExceptionTest
and result in
single-element arrays. To specify a multiple-element array, surround the elements
with curly braces and separate them with commas:
Do'stlaringiz bilan baham: