Inspectopedia
 
2024.3

Missing '@Deprecated' annotation

Warning
New
Last modified: 03 December 2024

Reports module declarations, classes, fields, or methods that have the @deprecated Javadoc tag but do not have the @java.lang.Deprecated annotation.

Example:

After the quick-fix is applied:

Use the checkbox below to report members annotated with @Deprecated without an explanation in a Javadoc @deprecated tag.

This inspection depends on the Java feature 'Annotations', which is available since Java 5.