diff --git a/src/main/java/graphql/TypeResolutionEnvironment.java b/src/main/java/graphql/TypeResolutionEnvironment.java index 5e6a18fc86..c606fdd5fe 100644 --- a/src/main/java/graphql/TypeResolutionEnvironment.java +++ b/src/main/java/graphql/TypeResolutionEnvironment.java @@ -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; @@ -89,7 +88,7 @@ public GraphQLSchema getSchema() { /** * Returns the context object set in via {@link ExecutionInput#getContext()} * - * @param to two + * @param the type to cast the result to * * @return the context object * @@ -112,11 +111,11 @@ public GraphQLContext getGraphQLContext() { /** * Returns the local context object set in via {@link DataFetcherResult#getLocalContext()} * - * @param to two + * @param the type to cast the result to * * @return the local context object */ - T getLocalContext() { + public T getLocalContext() { //noinspection unchecked return (T) localContext; }