Re: "'<' is not followed by whitespace" question

"Lars Kühne" <[email protected]>
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
Miroslav,

these are false positives, see bug #1374798. The way checkstyle
currently handles whitespace and generics is somewhat broken, and a
soon as you nest generics (Map<String, List<String>>) the situation
becomes even worse.

Cheers,
Lars


On 8/8/07, Miroslav Šulc <[email protected]> wrote:
> Hi,
>
> I am very new to checkstyle. I have a declaration like this:
>
> private static Map<Class, String> cacheSQLSelect =
> new HashMap<Class, String>();
>
> I get these reports in this line:
> '<' is not followed by whitespace.
> '<' is not preceded with whitespace.
> '>' is not followed by whitespace.
> '>' is not preceded with whitespace.
>
> Are these false positives or should there really be spaces around '<'
> and '>'?
>
> I use checkstyle 4.3 and sun_checks.xml.
>
> Thanks for help.
>
> --
> Miroslav Šulc

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.