Skip to content

Commit f1cf719

Browse files
committed
Add @DeprecatedAt annotation
1 parent cb57fa5 commit f1cf719

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package graphql;
2+
3+
import java.lang.annotation.Retention;
4+
import java.lang.annotation.RetentionPolicy;
5+
import java.lang.annotation.Target;
6+
7+
import static java.lang.annotation.ElementType.CONSTRUCTOR;
8+
import static java.lang.annotation.ElementType.FIELD;
9+
import static java.lang.annotation.ElementType.METHOD;
10+
import static java.lang.annotation.ElementType.PACKAGE;
11+
import static java.lang.annotation.ElementType.TYPE;
12+
13+
/**
14+
* Helper to track deprecation
15+
*
16+
* Please use ISO-8601 format i.e. YYYY-MM-DD
17+
*/
18+
@Retention(RetentionPolicy.SOURCE)
19+
@Target(value = {CONSTRUCTOR, METHOD, TYPE, FIELD, PACKAGE})
20+
public @interface DeprecatedAt {
21+
String value();
22+
}

0 commit comments

Comments
 (0)