I'm reading up about when it is necessary to provide @since
and @version
in the documentation of Java classes, however when is it appropriate to provide them? Was their original purpose for all visibility types or only public
and/or protected
?
I understand that the version
is specific to the iteration of the function or member, and the since
is relative to what version it was introduced, but is it the correct practice to add it to every member and function?
Examples:
/**
* @version 1.2
* @since 1.0
*/
public void myPublicMethod() {
// this would be acceptable
}
/**
* @version 2.1
* @since 1.5
*/
private void myPrivateMethod() {
// but would this?
}