Skip to content
Prev Previous commit
Next Next commit
cleanup
  • Loading branch information
andimarek committed May 23, 2025
commit c12be775723a6f73d04cc0effb295127e9ae0f31
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public class DeferredCallContext {
private final int startLevel;
private final int fields;

private final List<GraphQLError> errors = new CopyOnWriteArrayList<>();

public DeferredCallContext(int startLevel, int fields) {
this.startLevel = startLevel;
this.fields = fields;
Expand All @@ -41,7 +43,6 @@ public int getFields() {
return fields;
}

private final List<GraphQLError> errors = new CopyOnWriteArrayList<>();

public void addErrors(List<GraphQLError> errors) {
this.errors.addAll(errors);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,7 @@ public static Builder newDataFetchingEnvironment(ExecutionContext executionConte
.operationDefinition(executionContext.getOperationDefinition())
.variables(executionContext.getCoercedVariables().toMap())
.executionId(executionContext.getExecutionId())
.dataLoaderDispatchStrategy(executionContext.getDataLoaderDispatcherStrategy())
;


.dataLoaderDispatchStrategy(executionContext.getDataLoaderDispatcherStrategy());
}

@Override
Expand Down