You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Carlos Sanchez (JIRA)" <ji...@codehaus.org> on 2005/11/21 22:17:06 UTC
[jira] Updated: (MNG-1641) Checkstyle report fails on classes with JDK 1.5 syntax
[ http://jira.codehaus.org/browse/MNG-1641?page=all ]
Carlos Sanchez updated MNG-1641:
--------------------------------
Component: maven-checkstyle-plugin
> Checkstyle report fails on classes with JDK 1.5 syntax
> ------------------------------------------------------
>
> Key: MNG-1641
> URL: http://jira.codehaus.org/browse/MNG-1641
> Project: Maven 2
> Type: Bug
> Components: maven-checkstyle-plugin
> Environment: Linux Mandrake 10.1, JDK 1.5
> Reporter: John Ferguson Smart
> Priority: Minor
> Attachments: pom.xml
>
>
> The checkstyle report plugin fails to recognise JDK 1.5 syntax
> To reproduce:
> 1) Add a class with a JDK1.5 syntax and run mvn site
> ...
> public List findHotelsInCountry(Country country) {
> List hotelsFound = new ArrayList();
>
> for(Hotel hotel : hotels) {
> if (hotel.getCountry().equals(country)) {
> hotelsFound.add(hotel);
> }
> }
>
> return hotelsFound;
> }
> In the checkstyle report, you get:
> com/javaworld/hotels/model/HotelModel.java
> Violation Message Line
> error Got an exception - expecting EOF, found '}' 0
> 2) Replace the JDK 1.5 list syntax by a JDK1.4 iterator and rerun mvn site :
> com/javaworld/hotels/model/HotelModel.java
> Violation Message Line
> error Line has trailing spaces. 23
> error Line has trailing spaces. 28
> error Line has trailing spaces. 37
> error Line has trailing spaces. 42
> error '3' is a magic number. 42
> error Line has trailing spaces. 44
> ...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org