Document the methods in the interface, then inherit the documentation into the class, and provide fixed documentation for any class specific methods.
To let javadoc handle the inheritance from the interface, you can just comment using a tag: {@inheritDoc}. For example:
interface foo {
/**
* documentation!
*/
public void x();
}
class bar implements foo {
/* {@inheritDoc} */
public void x() {
doStuff;
}
}
One thing to note - this doesn't apply to class documentation, only to method documentation.
No comments:
Post a Comment