@Documented
@Retention(value=CLASS)
@Target(value={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.
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
since
Specifies in which version the API became obsolete.
|