Is there a way to write a javadoc comment for both an accessor and a mutator (getter/setter), to avoid duplicating information about the field underlying the method?
e.g.:
private float value;
/**
* This value represents something.
*/
public float getValue () {
return value;
}
/**
* This value represents something.
* @param _value A new value.
*/
public float setValue (float _value) {
value = _value;
}
Seems inefficient and error-prone to duplicate information about the 'value' field in the javadocs for getter and setter....