Skip to content

Files

Latest commit

 

History

History
36 lines (28 loc) · 820 Bytes

JavadocEmptyLastLine.md

File metadata and controls

36 lines (28 loc) · 820 Bytes

Pattern: Empty last line in comment

Issue: -

Description

Checks for javadoc comments with an empty line at the bottom.

Example of violations:

/**
 * Sample class
 *
 * @author Some Developer
 *                                                      // violation
 */
class MyClass {

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

Further Reading