|
10 | 10 | import graphql.util.TraverserContext; |
11 | 11 |
|
12 | 12 | import java.util.ArrayList; |
13 | | -import java.util.Collections; |
14 | 13 | import java.util.LinkedHashMap; |
15 | 14 | import java.util.List; |
16 | 15 | import java.util.Map; |
@@ -50,38 +49,8 @@ public class GraphQLFieldDefinition implements GraphQLNamedSchemaElement, GraphQ |
50 | 49 | public static final String CHILD_DIRECTIVES = "directives"; |
51 | 50 | public static final String CHILD_TYPE = "type"; |
52 | 51 |
|
53 | | - |
54 | | - /** |
55 | | - * @param name the name |
56 | | - * @param description the description |
57 | | - * @param type the field type |
58 | | - * @param dataFetcher the field data fetcher |
59 | | - * @param arguments the field arguments |
60 | | - * @param deprecationReason the deprecation reason |
61 | | - * |
62 | | - * @deprecated use the {@link #newFieldDefinition()} builder pattern instead, as this constructor will be made private in a future version. |
63 | | - */ |
64 | | - @Internal |
65 | | - @Deprecated |
66 | | - public GraphQLFieldDefinition(String name, String description, GraphQLOutputType type, DataFetcher<?> dataFetcher, List<GraphQLArgument> arguments, String deprecationReason) { |
67 | | - this(name, description, type, DataFetcherFactories.useDataFetcher(dataFetcher), arguments, deprecationReason, Collections.emptyList(), null); |
68 | | - } |
69 | | - |
70 | | - /** |
71 | | - * @param name the name |
72 | | - * @param description the description |
73 | | - * @param type the field type |
74 | | - * @param dataFetcherFactory the field data fetcher factory |
75 | | - * @param arguments the field arguments |
76 | | - * @param deprecationReason the deprecation reason |
77 | | - * @param directives the directives on this type element |
78 | | - * @param definition the AST definition |
79 | | - * |
80 | | - * @deprecated use the {@link #newFieldDefinition()} builder pattern instead, as this constructor will be made private in a future version. |
81 | | - */ |
82 | 52 | @Internal |
83 | | - @Deprecated |
84 | | - public GraphQLFieldDefinition(String name, String description, GraphQLOutputType type, DataFetcherFactory dataFetcherFactory, List<GraphQLArgument> arguments, String deprecationReason, List<GraphQLDirective> directives, FieldDefinition definition) { |
| 53 | + private GraphQLFieldDefinition(String name, String description, GraphQLOutputType type, DataFetcherFactory dataFetcherFactory, List<GraphQLArgument> arguments, String deprecationReason, List<GraphQLDirective> directives, FieldDefinition definition) { |
85 | 54 | assertValidName(name); |
86 | 55 | assertNotNull(type, () -> "type can't be null"); |
87 | 56 | assertNotNull(arguments, () -> "arguments can't be null"); |
|
0 commit comments