Skip to content

Commit 8577614

Browse files
author
foo
committed
add an option to apply @GraphqlDeprecate also on classes and fields
1 parent 0edad25 commit 8577614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/graphql/annotations/annotationTypes/GraphQLDeprecate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import java.lang.annotation.RetentionPolicy;
2020
import java.lang.annotation.Target;
2121

22-
@Target(ElementType.METHOD)
22+
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
2323
@Retention(RetentionPolicy.RUNTIME)
2424
public @interface GraphQLDeprecate {
2525
String value() default "";

0 commit comments

Comments
 (0)