What convention do you use to comment getters and setters? This is something I\'ve wondered for quite some time, for instance:
/**
* (1a) what do you put h
Why don't they just include a reference tag to let you comment the field value and the reference from getters and setters.
/**
* The adjustment factor for the bar calculation.
* @HasGetter
* @HasSetter
*/
private String foo;
public String getFoo() {
return foo;
}
public void setFoo() {
this foo = foo;
}
So that the documentation applies to the getter and setter as well as the field (if private javadocs is turned on that is).