Inspectopedia
 
2024.3

Unnecessary '{@inheritDoc}' Javadoc comment

Warning
New
Last modified: 03 December 2024

Reports Javadoc comments that contain only an {@inheritDoc} tag. Since Javadoc copies the super class' comment if no comment is present, a comment containing only {@inheritDoc} adds nothing.

Also, it reports the {@inheritDoc} usages in invalid locations, for example, in fields.

Suggests removing the unnecessary Javadoc comment.

Example:

After the quick-fix is applied: