Documented (Java Platform SE 8 )
Keywords: java.lang.annotation.Documented class
Date: 2026-04-22

java.lang.annotation

## Annotation Type 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.
  Since:
    1.5

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.