facebook

final keyword is automatically added to private member

💡
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. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #336212 Reply

    gotnoname
    Member

    I created a class and wanted to add a new member like this:
    private List<String> spreadsheetData = new ArrayList<String>();
    eclipse always seems to add the final keyword:
    private final List<String> spreadsheetData = new ArrayList<String>();

    How can this autogeneration be suppressed?

    #336224

    support-swapna
    Moderator

    gotnoname,

    You can suppress the autogeneration of final keyword for private fields from here : Windows -> Preferences -> Java -> Editor -> Save Actions.

    Let us know how it works for you.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: final keyword is automatically added to private member

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