Skip to content

Files

Latest commit

 

History

History
24 lines (17 loc) · 628 Bytes

JavadocEmptyThrowsTag.md

File metadata and controls

24 lines (17 loc) · 628 Bytes

Pattern: Empty @throws tag

Issue: -

Description

Checks for empty @throws tag within javadoc. Known limitation: Only the first occurrence of an empty @throws within a javadoc comment is found.

Example of violations:

/**
 * Return the calculated count of some stuff.
 *
 * @param startIndex - the starting index
 * @return the count
 * @throws                                          // violation
 */
int countThings(int startIndex) { }

Further Reading