Skip to content

Commit 58daf97

Browse files
authored
fix typo and mark UnionTypeError with @internal (#2049)
1 parent af83f79 commit 58daf97

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/main/java/graphql/cachecontrol/CacheControl.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
* To best use this class you need to pass a CacheControl object to each {@link graphql.schema.DataFetcher} and have them decide on
2121
* the caching hint values.
2222
* <p>
23-
* The easiest why to do this is create a CacheControl object at query start and pass it in as a "context" object via {@link graphql.ExecutionInput#getContext()} and then have
24-
* each {@link graphql.schema.DataFetcher} thats wants to make cache control hints use that.
23+
* The easiest way to do this is create a CacheControl object at query start and pass it in as a "context" object via {@link graphql.ExecutionInput#getContext()} and then have
24+
* each {@link graphql.schema.DataFetcher} that wants to make cache control hints use that.
2525
* <p>
2626
* Then at the end of the query you would call {@link #addTo(graphql.ExecutionResult)} to record the cache control hints into the {@link graphql.ExecutionResult}
2727
* extensions map as per the specification.

‎src/main/java/graphql/schema/idl/errors/UnionTypeError.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
package graphql.schema.idl.errors;
22

3+
import graphql.Internal;
34
import graphql.language.Node;
45

6+
@Internal
57
public class UnionTypeError extends BaseError {
68
public UnionTypeError(Node node, String msg) {
79
super(node, msg);

0 commit comments

Comments
 (0)