Skip to content

Commit 108910e

Browse files
authored
Merge pull request #3512 from graphql-java/remove-deprecated-method-on-execution-context
Removed deprecated methods in ExecutionContext
2 parents 3e565cb + 62118c6 commit 108910e

3 files changed

Lines changed: 2 additions & 12 deletions

File tree

src/main/java/graphql/execution/ExecutionContext.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,6 @@ public OperationDefinition getOperationDefinition() {
122122
return operationDefinition;
123123
}
124124

125-
/**
126-
* @return map of coerced variables
127-
*
128-
* @deprecated use {@link #getCoercedVariables()} instead
129-
*/
130-
@Deprecated(since = "2022-05-24")
131-
public Map<String, Object> getVariables() {
132-
return coercedVariables.toMap();
133-
}
134-
135125
public CoercedVariables getCoercedVariables() {
136126
return coercedVariables;
137127
}

src/main/java/graphql/schema/DataFetchingEnvironmentImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public static Builder newDataFetchingEnvironment(ExecutionContext executionConte
9494
.locale(executionContext.getLocale())
9595
.document(executionContext.getDocument())
9696
.operationDefinition(executionContext.getOperationDefinition())
97-
.variables(executionContext.getVariables())
97+
.variables(executionContext.getCoercedVariables().toMap())
9898
.executionId(executionContext.getExecutionId());
9999
}
100100

src/test/groovy/graphql/execution/ExecutionContextBuilderTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ExecutionContextBuilderTest extends Specification {
5454
executionContext.root == root
5555
executionContext.context == context // Retain deprecated method for test coverage
5656
executionContext.graphQLContext == graphQLContext
57-
executionContext.variables == [var: 'value'] // Retain deprecated method for test coverage
57+
executionContext.getCoercedVariables().toMap() == [var: 'value']
5858
executionContext.getFragmentsByName() == [MyFragment: fragment]
5959
executionContext.operationDefinition == operation
6060
executionContext.dataLoaderRegistry == dataLoaderRegistry

0 commit comments

Comments
 (0)