22
33import java .util .ArrayList ;
44import java .util .Collections ;
5+ import java .util .HashMap ;
56import java .util .List ;
7+ import java .util .Map ;
68import java .util .Optional ;
79import java .util .stream .Collectors ;
810
1113import graphql .language .Field ;
1214import graphql .language .SourceLocation ;
1315import graphql .schema .DataFetcher ;
14- import java .util .HashMap ;
15- import java .util .Map ;
1616
1717import static graphql .Assert .assertNotNull ;
1818
@@ -25,7 +25,7 @@ class AbsoluteGraphQLError implements GraphQLError {
2525 private final List <Object > absolutePath ;
2626 private final String message ;
2727 private final ErrorType errorType ;
28- private final Map <String , Object > extentions ;
28+ private final Map <String , Object > extensions ;
2929
3030 AbsoluteGraphQLError (ExecutionStrategyParameters executionStrategyParameters , GraphQLError relativeError ) {
3131 assertNotNull (executionStrategyParameters );
@@ -35,10 +35,10 @@ class AbsoluteGraphQLError implements GraphQLError {
3535 this .message = relativeError .getMessage ();
3636 this .errorType = relativeError .getErrorType ();
3737 if (relativeError .getExtensions () != null ) {
38- this .extentions = new HashMap <>();
39- this .extentions .putAll (relativeError .getExtensions ());
38+ this .extensions = new HashMap <>();
39+ this .extensions .putAll (relativeError .getExtensions ());
4040 } else {
41- this .extentions = null ;
41+ this .extensions = null ;
4242 }
4343 }
4444
@@ -64,7 +64,7 @@ public List<Object> getPath() {
6464
6565 @ Override
6666 public Map <String , Object > getExtensions () {
67- return extentions ;
67+ return extensions ;
6868 }
6969
7070 /**
0 commit comments