WhitespaceAround and exclusion of annotations with array initialization
"Stefan Hedtfeld" <[email protected]>
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I am using checkstyle 4.4 for my Java 5 code. I would like to use the
WhitespaceAround checker but the check fails for annotations like
@OneToMany(cascade = {CascadeType.MERGE, CascadeType.PERSIST})
or
@AllowedTypes({SyncType.ASYNCHRON, SyncType.SYNCHRON})
stating a missing whitespace before "}" and "{".
I found the constant TokenTypes.ANNOTATION_ARRAY_INIT, but the
documentation does not state this to be part of the supported subset for
this checker.
Is there a way to use this checker and avoid those errors? Am I missing
anything?
Regards,
Stefan.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Checkstyle-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/checkstyle-user