Skip to content

Commit 934ca19

Browse files
tinnoubbakerman
authored andcommitted
fix typo
1 parent fa8915d commit 934ca19

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/main/java/graphql/execution/AbsoluteGraphQLError.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
import java.util.ArrayList;
44
import java.util.Collections;
5+
import java.util.HashMap;
56
import java.util.List;
7+
import java.util.Map;
68
import java.util.Optional;
79
import java.util.stream.Collectors;
810

@@ -11,8 +13,6 @@
1113
import graphql.language.Field;
1214
import graphql.language.SourceLocation;
1315
import graphql.schema.DataFetcher;
14-
import java.util.HashMap;
15-
import java.util.Map;
1616

1717
import 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

Comments
 (0)