Re: WhitespaceAround and exclusion of annotations with array initialization
"Oliver Burn" <[email protected]>
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <[email protected]> |
I would suggest trying out the version 5 of Checkstyle is in SVN. It has not been released yet, but is stable enough for use. The release solves all the issues with Java 5 whitespace. On Mon, Mar 3, 2008 at 7:40 PM, Stefan Hedtfeld < [email protected]> wrote: > 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 > > ------------------------------------------------------------------------- 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