Annotation Interface ApiStatus.Obsolete

Enclosing class:
ApiStatus

@Documented @Retention(CLASS) @Target({TYPE,ANNOTATION_TYPE,METHOD,CONSTRUCTOR,FIELD,PACKAGE}) public static @interface ApiStatus.Obsolete

Indicates that a public API of the annotated element (class, method or field) is subject to deprecation in a future version. It's a weaker variant of Deprecated annotation. The annotated API is not supposed to be used in the new code because a better API exists, but it's permitted to postpone the migration of the existing code, therefore the usage is not considered a warning.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Specifies in which version the API became obsolete.
  • Element Details

    • since

      String since
      Specifies in which version the API became obsolete.
      Default:
      ""