Re: "'<' is not followed by whitespace" question
Miroslav Šulc <[email protected]>
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Organization | StartNet s.r.o. |
| Message-ID | <[email protected]> |
I solved that. The settings is in WhitespaceAround so I dropped the values for generics. -- Miroslav Šulc Miroslav Šulc napsal(a): > 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/