Missing '@Deprecated' annotation
Reports module declarations, classes, fields, or methods that have the @deprecated
Javadoc tag but do not have the @java.lang.Deprecated
annotation.
Example:
/**
* @deprecated use {@code example()} instead
*/
void sample(){ }
After the quick-fix is applied:
/**
* @deprecated use {@code example()} instead
*/
@Deprecated
void sample(){ }
This inspection reports only if the language level of the project or module is 5 or higher.
Use the checkbox below to report members annotated with @Deprecated
without an explanation in a Javadoc @deprecated
tag.
Inspection options
Option | Type | Default |
---|---|---|
Warn on missing @deprecated Javadoc tag explanation | Checkbox | false |
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023