Skip to content

Files

Latest commit

 

History

History
24 lines (17 loc) · 648 Bytes

JavadocEmptyExceptionTag.md

File metadata and controls

24 lines (17 loc) · 648 Bytes

Pattern: Empty @exception tag

Issue: -

Description

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

Example of violations:

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

Further Reading