Skip to content

Files

Latest commit

 

History

History
26 lines (18 loc) · 708 Bytes

JavadocMissingThrowsDescription.md

File metadata and controls

26 lines (18 loc) · 708 Bytes

Pattern: Missing @throws description in Javadoc

Issue: -

Description

Checks for missing description within Javadoc @throws tags.

Known limitation: Only the first occurrence of a missing description for a @throws Javadoc comment is found.

Example of violations:

/**
 * Return the calculated count of some stuff.
 *
 * @param startIndex the starting index; must be >= 0
 * @return the full count
 * @throws RuntimeException                   // violation
 */
int countThings(int startIndex) { }

Further Reading