Empty JavaDoc tags are meaningless, and may even cause tools that consume JavaDoc comments to crash.
Always add an explanation when writing JavaDoc tags.
In the example below, the @param
JavaDoc tag does not refer to any parameter, and does not have any description. This may be because the documentation comment itself is incomplete.
/**
* Some method.
*
* @param
*/
String someMethod(int someParam) {
// ...
Avoid leaving JavaDoc tags without any associated info or description.
/**
* Some method.
*
* @param someParam - Specifies something.
*/
String someMethod(int someParam) {
// ...