Annotation Interface RuntimeObsolete


@Documented @Retention(RUNTIME) @Target(FIELD) public @interface RuntimeObsolete
Marks an API element as obsolete and makes this information available at runtime via reflection. Use in conjunction with an IDE-recognized annotation like @ApiStatus.Obsolete if IDE warnings are also desired.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Optional: Add a reason or replacement suggestion.
    Specifies in which version the API became obsolete.
  • Element Details

    • since

      String since
      Specifies in which version the API became obsolete. Should generally match the value in the corresponding @ApiStatus.Obsolete annotation.
      Default:
      ""
    • reason

      String reason
      Optional: Add a reason or replacement suggestion.
      Default:
      ""