Skip to content

Commit 4f1af63

Browse files
authored
TypeResolutionEnvironment#getLocalContext seems accidentally non-public (#3021)
1 parent e16db8b commit 4f1af63

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎src/main/java/graphql/TypeResolutionEnvironment.java‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import graphql.execution.DataFetcherResult;
55
import graphql.execution.MergedField;
66
import graphql.execution.TypeResolutionParameters;
7-
import graphql.schema.DataFetchingEnvironment;
87
import graphql.schema.DataFetchingFieldSelectionSet;
98
import graphql.schema.GraphQLSchema;
109
import graphql.schema.GraphQLType;
@@ -89,7 +88,7 @@ public GraphQLSchema getSchema() {
8988
/**
9089
* Returns the context object set in via {@link ExecutionInput#getContext()}
9190
*
92-
* @param <T> to two
91+
* @param <T> the type to cast the result to
9392
*
9493
* @return the context object
9594
*
@@ -112,11 +111,11 @@ public GraphQLContext getGraphQLContext() {
112111
/**
113112
* Returns the local context object set in via {@link DataFetcherResult#getLocalContext()}
114113
*
115-
* @param <T> to two
114+
* @param <T> the type to cast the result to
116115
*
117116
* @return the local context object
118117
*/
119-
<T> T getLocalContext() {
118+
public <T> T getLocalContext() {
120119
//noinspection unchecked
121120
return (T) localContext;
122121
}

0 commit comments

Comments
 (0)