facebook

How to make auto-generated setter method parameters final?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #287023 Reply

    chennaikar
    Member

    We are looking for a way to specify autogenerated setter method parameters to be made final.

    Checked the Java Code Style / Code Templates however those only specify the method body & comments, not the signature.

    Does any one know of a way to change the method signatures?

    TIA
    Chennaikar

    #287033

    Loyal Water
    Member

    When you right click in the java file and go to Source > Generate Getters and Setters.., you can select the access modifier as final over there. You cannot modify the template to auto generate this for you.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to make auto-generated setter method parameters final?

You must be logged in to post in the forum log in