[forge-issues] [JBoss JIRA] (ROASTER-34) Add a method MethodSource.removeParameter(Class<?> aClass, String s)

George Gastaldi (JIRA) issues at jboss.org
Thu Sep 11 13:55:19 EDT 2014


    [ https://issues.jboss.org/browse/ROASTER-34?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001581#comment-13001581 ] 

George Gastaldi commented on ROASTER-34:
----------------------------------------

What is wrong with {{org.jboss.forge.roaster.model.source.MethodSource.removeParameter(ParameterSource<O>)}} ?

> Add a method MethodSource.removeParameter(Class<?> aClass, String s)
> --------------------------------------------------------------------
>
>                 Key: ROASTER-34
>                 URL: https://issues.jboss.org/browse/ROASTER-34
>             Project: Roaster
>          Issue Type: Feature Request
>          Components: API
>    Affects Versions: 2.7.1.Final
>            Reporter: Antonio Goncalves
>             Fix For: 2.x Future
>
>
> At the moment it's easy to add a parameter to a method knowing its name and type :
> {code}
> property.getMutator().addParameter(LocalDate.class, "myDate");
> {code}
> It would be good to have the same facility to remove a parameter given a type and a name. Something like :
> {code}
> property.getMutator().removeParameter(LocalDate.class, "myDate");
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the forge-issues mailing list