@@ -394,7 +394,7 @@ protected Object resolveFieldWithInfo(ExecutionContext executionContext, Executi
394394 @ DuckTyped (shape = "CompletableFuture<FetchedValue|Object> | <FetchedValue|Object>" )
395395 protected Object fetchField (ExecutionContext executionContext , ExecutionStrategyParameters parameters ) {
396396 MergedField field = parameters .getField ();
397- GraphQLObjectType parentType = ( GraphQLObjectType ) parameters .getExecutionStepInfo ().getUnwrappedNonNullType ();
397+ GraphQLObjectType parentType = parameters .getExecutionStepInfo ().getUnwrappedNonNullTypeAs ();
398398 GraphQLFieldDefinition fieldDef = getFieldDef (executionContext .getGraphQLSchema (), parentType , field .getSingleField ());
399399 return fetchField (fieldDef , executionContext , parameters );
400400 }
@@ -408,7 +408,7 @@ private Object fetchField(GraphQLFieldDefinition fieldDef, ExecutionContext exec
408408 }
409409
410410 MergedField field = parameters .getField ();
411- GraphQLObjectType parentType = ( GraphQLObjectType ) parameters .getExecutionStepInfo ().getUnwrappedNonNullType ();
411+ GraphQLObjectType parentType = parameters .getExecutionStepInfo ().getUnwrappedNonNullTypeAs ();
412412
413413 // if the DF (like PropertyDataFetcher) does not use the arguments or execution step info then dont build any
414414
@@ -615,13 +615,13 @@ protected FieldValueInfo completeField(ExecutionContext executionContext,
615615 executionContext .throwIfCancelled ();
616616
617617 Field field = parameters .getField ().getSingleField ();
618- GraphQLObjectType parentType = ( GraphQLObjectType ) parameters .getExecutionStepInfo ().getUnwrappedNonNullType ();
618+ GraphQLObjectType parentType = parameters .getExecutionStepInfo ().getUnwrappedNonNullTypeAs ();
619619 GraphQLFieldDefinition fieldDef = getFieldDef (executionContext .getGraphQLSchema (), parentType , field );
620620 return completeField (fieldDef , executionContext , parameters , fetchedValue );
621621 }
622622
623623 private FieldValueInfo completeField (GraphQLFieldDefinition fieldDef , ExecutionContext executionContext , ExecutionStrategyParameters parameters , Object fetchedValue ) {
624- GraphQLObjectType parentType = ( GraphQLObjectType ) parameters .getExecutionStepInfo ().getUnwrappedNonNullType ();
624+ GraphQLObjectType parentType = parameters .getExecutionStepInfo ().getUnwrappedNonNullTypeAs ();
625625 ExecutionStepInfo executionStepInfo = createExecutionStepInfo (executionContext , parameters , fieldDef , parentType );
626626
627627 Instrumentation instrumentation = executionContext .getInstrumentation ();
@@ -1008,7 +1008,7 @@ private boolean incrementAndCheckMaxNodesExceeded(ExecutionContext executionCont
10081008 * @return a {@link GraphQLFieldDefinition}
10091009 */
10101010 protected GraphQLFieldDefinition getFieldDef (ExecutionContext executionContext , ExecutionStrategyParameters parameters , Field field ) {
1011- GraphQLObjectType parentType = ( GraphQLObjectType ) parameters .getExecutionStepInfo ().getUnwrappedNonNullType ();
1011+ GraphQLObjectType parentType = parameters .getExecutionStepInfo ().getUnwrappedNonNullTypeAs ();
10121012 return getFieldDef (executionContext .getGraphQLSchema (), parentType , field );
10131013 }
10141014
0 commit comments