Skip to content

Commit 089ad0f

Browse files
committed
add deprecation removal marker annotation
1 parent 3fc6eda commit 089ad0f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/com/falsepattern/lib/DeprecationDetails.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,14 @@
3535
public @interface DeprecationDetails {
3636
@StableAPI.Expose String deprecatedSince();
3737
@StableAPI.Expose(since = "0.11.0") String replacement() default "";
38+
39+
/**
40+
* This marks an API for removal in a future version.
41+
*/
42+
@Documented
43+
@Retention(RetentionPolicy.RUNTIME)
44+
@StableAPI(since = "0.12.0")
45+
@interface RemovedInVersion {
46+
String value();
47+
}
3848
}

0 commit comments

Comments
 (0)