This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 220420 - When generating setter allow to configure final usage
Summary: When generating setter allow to configure final usage
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-19 12:55 UTC by everflux
Modified: 2013-03-25 21:37 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description everflux 2012-10-19 12:55:15 UTC
[ BUILD # : 201210180002 ]
[ JDK VERSION : 1.7.9 ]

When generating setter (keybord shortcut or alt-insert / code generation) it
would be nice to be able to specify that the attributes of the setter method
should be made final.
example:

public void setFoo(final Foo foo)
{
  this.foo = foo;
}
Comment 1 everflux 2013-03-25 21:37:00 UTC
It would be nice if this could be done for local variables as well.
Example:

getSomething(); <alt><return> -> assign to local variable results in

final Something something = getSomething();