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.
Summary: | Have getters and setters, what about withs? | ||
---|---|---|---|
Product: | java | Reporter: | djc391 |
Component: | Beans | Assignee: | Ralph Ruijs <ralphbenjamin> |
Status: | NEW --- | ||
Severity: | normal | CC: | ma.schroed |
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | Other | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
djc391
2014-02-05 02:44:56 UTC
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. |