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.
Netbean's insert code is a great feature to very quickly build classes. I find myself using it to create getters and constructors for all my classes. But I have recently gotten into the habbit of instead of using setters using with methods. For example public void setId(String id){ this.id = id; } public Object withId(String id){ this.id = id; return this; } I believe that most of work needed to add this feature has already been done with the set methods. I find that editing the set methods can break things that use "standard" setter notation.
This is a good idea: to make getter/setters more customizable. I just read an article where the autor suggest to avoid the get/set prefix. A method to set a field looks like this: public void height(int value) { ... } And a method to get the value is also simple: public int height() {
Oh, I was not done yet: The getters and stters could be provided by a code template. So that everyone can change it to their needs.