For example I have a simple POJO class with some properties. What more my setters are doing is notifying the property change listener in my class to fire a property change event. Are they setters or not in this context? Should I name them something else or adding this comment suffices? Some sample code:
/**
* This is a special setter which uses property change support.
* @param engineerOnDue engineer
*/
public void setEngineerOnDue(String engineerOnDue) {
propertyChangeSupport.firePropertyChange("engineerOnDue", this.engineerOnDue, this.engineerOnDue = engineerOnDue);
}
It all depends on the API you wish to provide to your client. Normally the client doesn’t need to know the implementation of the method, so if the set-name covers the bandwagon: just use it.