Skip to content

Commit 9f8fb61

Browse files
authored
Merge pull request #161 from danieltaub96/master
minor changes for deprecated features
2 parents 4908252 + 1f0a926 commit 9f8fb61

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ repositories {
6161

6262
gradle.projectsEvaluated {
6363
tasks.withType(JavaCompile) {
64-
options.compilerArgs << "-parameters"
64+
doLast {
65+
options.compilerArgs += "-parameters"
66+
}
6567
}
6668
}
6769

src/main/java/graphql/annotations/GraphQLFieldDefinitionWrapper.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@
1414
*/
1515
package graphql.annotations;
1616

17+
import graphql.schema.DataFetcher;
18+
import graphql.schema.DataFetcherFactories;
1719
import graphql.schema.GraphQLFieldDefinition;
1820

1921
public class GraphQLFieldDefinitionWrapper extends GraphQLFieldDefinition {
2022

2123
public GraphQLFieldDefinitionWrapper(GraphQLFieldDefinition fieldDefinition) {
2224
super(fieldDefinition.getName(), fieldDefinition.getDescription(), fieldDefinition.getType(),
23-
fieldDefinition.getDataFetcher(), fieldDefinition.getArguments(), fieldDefinition.getDeprecationReason());
25+
DataFetcherFactories.useDataFetcher((DataFetcher<?>)fieldDefinition.getDataFetcher()), fieldDefinition.getArguments(), fieldDefinition.getDeprecationReason(),
26+
fieldDefinition.getDefinition());
2427
}
2528

2629
@Override

0 commit comments

Comments
 (0)