[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.jdt] Re: Modifying setter generation?
|
This cannot be specified in the template. There is however a feature request
to introduce a final code generation setting
Cheers
Tobias
"Sean LeBlanc" <seanleblanc@xxxxxxxxxxx> wrote in message
news:d7l1ja$71m$1@xxxxxxxxxxxxxxxxxxx
> I'd like to add the keyword "final" before the argument in the setter
> signature. Is there any way to modify the template to do this?
>
> I see you can check off "final" but that's for the whole method. I want it
> to look like this:
>
> public void setFoo(final int foo) {
> ...
> }
>
> Otherwise, CheckStyle warns about the variable needing to be final.
>
>
> Thanks,
> Sean LeBlanc
>