add deprecation removal marker annotation

This commit is contained in:
FalsePattern committed 2023-07-16 12:54:10 +02:00
1 parent 3fc6eda607
commit 089ad0f6d7
1 file changed
+10
@@ -35,4 +35,14 @@ import java.lang.annotation.RetentionPolicy;
public @interface DeprecationDetails {
@StableAPI.Expose String deprecatedSince();
@StableAPI.Expose(since = "0.11.0") String replacement() default "";
/**
* This marks an API for removal in a future version.
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@StableAPI(since = "0.12.0")
@interface RemovedInVersion {
String value();
}
}