Let's say I have the following function:
/**
* Thorough explanation
*
*/
public void somethingImportant(String parameter)
{
(...)
}
Now for convenience, I add the following function:
public void somethingImportant()
{
somethingImportant(null);
}
The javadoc for both functions should be next to identical. Perhaps the only difference is that the first function has an extra line describing what parameter
does.
Is there any way to avoid simply copying the existing javadoc, and instead reusing it?