From 5f0456dc4a2b11b1e5be8ecf05e67d968592609c Mon Sep 17 00:00:00 2001 From: Bojan Tomic Date: Sat, 19 Nov 2022 00:59:14 +0100 Subject: [PATCH] TypeResolutionEnvironment#getLocalContext seems accidentally non-public --- src/main/java/graphql/TypeResolutionEnvironment.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; }