Why is the @Deprecated annotation tracked by SignatureTest tool, but its ancestor the @deprecated Javadoc tag is not?
The @Deprecated annotation and @deprecated Javadoc comment are not the same. The most important difference to SignatureTest tool is that the @Deprecated annotation is specified by the Java Language Specification, but the Javadoc tag is not. According to the following section of Sun’s guide How and When To Deprecate APIs the @Deprecated annotation is mandatory and @deprecated Javadoc tag is optional: How to Deprecate Starting with Java SE 5.0, you deprecate a class, method, or field by using the @Deprecated annotation. Additionally, you can use the @deprecated Javadoc tag tell developers what to use instead. Using the annotation causes the Java language compiler to generate warnings when the deprecated class, method, or field is used. The compiler suppresses deprecation warnings if a deprecated compilation unit uses a deprecated class, method, or field. This enables you to build legacy APIs without generating warnings. You are strongly encouraged to use the Javadoc @deprecated tag with
Related Questions
- Why is the @Deprecated annotation tracked by SignatureTest tool, but its ancestor the @deprecated Javadoc tag is not?
- Why are some annotations (such as @Deprecated) tracked by SignatureTest tool, and others are not?
- I know ActivePen is an annotation tool. But, can I capture screen without doing any annotation?