Reputation: 30097
I want setters coded like this:
private String name;
public void setName(String value) {
this.name = value;
}
but if I program eclipse template like this
${field} = value;
I get the following wrong code:
private String name;
public void setName(String name) {
this.name = value;
}
How to accomplish?
Upvotes: 0
Views: 223
Reputation: 6204
It is not possible to accomplish this as you can only influence the body of the setter, not the signature.
Upvotes: 1