[ checkstyle-Bugs-2874050 ] WhitespaceAround wrongly targets annotation element arrays

View: New views
1 Messages — Rating Filter:   Alert me  

[ checkstyle-Bugs-2874050 ] WhitespaceAround wrongly targets annotation element arrays

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bugs item #2874050, was opened at 2009-10-07 11:38
Message generated for change (Tracker Item Submitted) made by mihobson
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397078&aid=2874050&group_id=29721

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core Framework
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mark Hobson (mihobson)
Assigned to: Oliver Burn (oburn)
Summary: WhitespaceAround wrongly targets annotation element arrays

Initial Comment:
WhitespaceAround fails on the following:

@MyAnnotation(myArrayElement = {"a", "b", "c"})

With: "'}' is not preceded with whitespace."

Whereas the same formatting used with array initialisation passes:

String myArrayElement = new String[] {"a", "b", "c"};

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397078&aid=2874050&group_id=29721

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Checkstyle-devel mailing list
Checkstyle-devel@...
https://lists.sourceforge.net/lists/listinfo/checkstyle-devel