File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed
src/test/java/graphql/annotations/processor/retrievers/fieldBuilders Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ public String field(@GraphQLDefaultValue(DefaultValue.class) String value) {
250250The ` DefaultValue ` class can define a ` getInstance ` method that will be called instead of the default constructor.
251251
252252` @GraphQLDeprecate ` and Java's ` @Deprecated ` can be used to specify a deprecated
253- field.
253+ field, method or a type .
254254
255255### Custom data fetcher
256256
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ plugins {
1818apply plugin : ' java'
1919apply plugin : ' idea'
2020
21- // apply plugin: 'osgi'
2221apply plugin : ' biz.aQute.bnd.builder'
2322apply plugin : ' com.jfrog.bintray'
2423apply plugin : ' maven-publish'
Original file line number Diff line number Diff line change 2525
2626public class DeprecateBuilderTest {
2727
28+ @ GraphQLDeprecate ("test field deprecated" )
29+ public String testField ;
30+
31+ @ GraphQLDeprecate
32+ public String testField1 ;
33+
34+ public String testField2 ;
35+
2836 @ GraphQLDeprecate ("test deprecated" )
2937 public int testMethod () {
3038 return 1 ;
@@ -44,14 +52,6 @@ public int testMethod4() {
4452 return 1 ;
4553 }
4654
47- @ GraphQLDeprecate ("test field deprecated" )
48- public String testField ;
49-
50- @ GraphQLDeprecate
51- public String testField1 ;
52-
53- public String testField2 ;
54-
5555 @ Test
5656 public void build_graphQLDeprecateAnnotationExistsWithValue_returnAnnotationValue () throws NoSuchMethodException {
5757 // arrange
You can’t perform that action at this time.
0 commit comments