Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why are some annotations (such as @Deprecated) tracked by SignatureTest tool, and others are not?

0
Posted

Why are some annotations (such as @Deprecated) tracked by SignatureTest tool, and others are not?

0

SignatureTest tool (version 1.5) only tracks annotations whose types are annotated with @Documented The following section of the Java Language Specification describes java.lang.annotation.Documented: @Documented @Retention(value=RUNTIME) @Target(value=ANNOTATION_TYPE) public @interface Documented Indicates that annotations with a type are to be documented by Javadoc and similar tools by default. This type should be used to annotate the declarations of types whose annotations affect the use of annotated elements by their clients. If a type declaration is annotated with Documented, its annotations become part of the public API of the annotated elements. Therefore, any annotation type annotated with the @Documented annotation is a “part of the public API”. Because @Deprecated is documented, SignatureTest tool tracks it like any other part of a public API. SignatureTest tool writes to a signature file and checks annotations that have either RUNTIME or CLASS retention. Since annotations wit

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.