You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Bindul Bhowmik (JIRA)" <ji...@codehaus.org> on 2010/12/06 11:11:03 UTC

[jira] Created: (MPLUGIN-176) helpmojo: Use Java 5 generics in generated help mojo

helpmojo: Use Java 5 generics in generated help mojo
----------------------------------------------------

                 Key: MPLUGIN-176
                 URL: http://jira.codehaus.org/browse/MPLUGIN-176
             Project: Maven 2.x Plugin Tools
          Issue Type: Improvement
          Components: Plugin Plugin
    Affects Versions: 2.6
            Reporter: Bindul Bhowmik
            Priority: Minor


The generated help mojo class generates List and ArrayList variables and parameters without generic collections. This causes compiler warnings for projects compiled with Java 5 or higher. It also causes warnings in IDEs.

Possibly an optional parameter like useJava5 in Modello Maven Plugin ([http://modello.codehaus.org/modello-maven-plugin/java-mojo.html#useJava5]) could be used to control generating the help mojo with generic collections.

-- 
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

        

[jira] Closed: (MPLUGIN-176) helpmojo: Use Java 5 generics in generated help mojo

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPLUGIN-176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MPLUGIN-176.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.7
         Assignee: Benjamin Bentmann

Fixed in [r1050558|http://svn.apache.org/viewvc?view=revision&revision=1050558] by adding {{@SuppressWarnings( "all" )}} at the class level which disables any kind of warning whatsoever from the generated code.

> helpmojo: Use Java 5 generics in generated help mojo
> ----------------------------------------------------
>
>                 Key: MPLUGIN-176
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-176
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Improvement
>          Components: Plugin Plugin
>    Affects Versions: 2.6
>            Reporter: Bindul Bhowmik
>            Assignee: Benjamin Bentmann
>            Priority: Minor
>             Fix For: 2.7
>
>         Attachments: MPLUGIN-176-patch.diff
>
>
> The generated help mojo class generates List and ArrayList variables and parameters without generic collections. This causes compiler warnings for projects compiled with Java 5 or higher. It also causes warnings in IDEs.
> Possibly an optional parameter like useJava5 in Modello Maven Plugin ([http://modello.codehaus.org/modello-maven-plugin/java-mojo.html#useJava5]) could be used to control generating the help mojo with generic collections.

-- 
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

        

[jira] Updated: (MPLUGIN-176) helpmojo: Use Java 5 generics in generated help mojo

Posted by "Bindul Bhowmik (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPLUGIN-176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bindul Bhowmik updated MPLUGIN-176:
-----------------------------------

    Attachment: MPLUGIN-176-patch.diff

Attaching a patch that uses a 'useJava5' parameter to generate help mojo with Java5 generics support.

> helpmojo: Use Java 5 generics in generated help mojo
> ----------------------------------------------------
>
>                 Key: MPLUGIN-176
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-176
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Improvement
>          Components: Plugin Plugin
>    Affects Versions: 2.6
>            Reporter: Bindul Bhowmik
>            Priority: Minor
>         Attachments: MPLUGIN-176-patch.diff
>
>
> The generated help mojo class generates List and ArrayList variables and parameters without generic collections. This causes compiler warnings for projects compiled with Java 5 or higher. It also causes warnings in IDEs.
> Possibly an optional parameter like useJava5 in Modello Maven Plugin ([http://modello.codehaus.org/modello-maven-plugin/java-mojo.html#useJava5]) could be used to control generating the help mojo with generic collections.

-- 
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