In my checkstyle.xml file, I have javadoc summary enabled:
<module name="SummaryJavadocCheck"/>
I have a class with following javadoc:
/**
* @deprecated this class will be removed in future. Use {@link com.mypackage.myclass} instead
*/
@Deprecated(forRemoval = true)
public class MyDeprecatedClass {
I evaluate checkstyle via maven checkstyle plugin (3.1.0) or via CheckStyle-IDEA plugin (version 5.34.0). In the idea plugin, I specify checkstyle version 8.19.
Here's the error that I get:
MyDeprecatedClass.java : 1 item(s)
Summary javadoc is missing (13:0) [SummaryJavadoc]
1) Why is this rule violated? from the description of the SummaryJavadoc, default disallowed value is "empty"
2) How do I make it work? I don't really need a javadoc on this class, but I have to add @deprecated javadoc because of MissingDeprecated checkstyle rule.
Footnote: if I select checkstyle version 8.0 or lower, this error isn't shown.