Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/main/java/graphql/TypeResolutionEnvironment.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import graphql.execution.DataFetcherResult;
import graphql.execution.MergedField;
import graphql.execution.TypeResolutionParameters;
import graphql.schema.DataFetchingEnvironment;
import graphql.schema.DataFetchingFieldSelectionSet;
import graphql.schema.GraphQLSchema;
import graphql.schema.GraphQLType;
Expand Down Expand Up @@ -89,7 +88,7 @@ public GraphQLSchema getSchema() {
/**
* Returns the context object set in via {@link ExecutionInput#getContext()}
*
* @param <T> to two
* @param <T> the type to cast the result to
*
* @return the context object
*
Expand All @@ -112,11 +111,11 @@ public GraphQLContext getGraphQLContext() {
/**
* Returns the local context object set in via {@link DataFetcherResult#getLocalContext()}
*
* @param <T> to two
* @param <T> the type to cast the result to
*
* @return the local context object
*/
<T> T getLocalContext() {
public <T> T getLocalContext() {
//noinspection unchecked
return (T) localContext;
}
Expand Down