Community
Participate
Working Groups
I think its great if we could generate a Setter that return a reference to its Class. Maybe we could enable/disable the feature via a checkbox (as a flag). Below are the example of setter that returns its class: class Example { String value; public Example setValue(String value) { this.value = value; return this; } public String getValue() { return value; } } A better example would be the Query class from JPA API. Thanks, Donny
Moving to JDT/UI
Just wanted to register a +1 on this: with increasing prevalence of "fluent" APIs, this will only become a more common requirement over time. An option to make setters return "this" by default would be very helpful.