|
24 | 24 | import graphql.schema.GraphQLObjectType; |
25 | 25 | import graphql.schema.GraphQLSchema; |
26 | 26 | import graphql.schema.GraphQLUnmodifiedType; |
| 27 | +import graphql.util.LinkedHashMapFactory; |
27 | 28 | import org.jspecify.annotations.NonNull; |
28 | 29 | import org.jspecify.annotations.Nullable; |
29 | 30 |
|
@@ -100,7 +101,7 @@ public static CompilerResult compileToDocument(@NonNull GraphQLSchema schema, |
100 | 101 | @Nullable String operationName, |
101 | 102 | @NonNull List<ExecutableNormalizedField> topLevelFields, |
102 | 103 | @Nullable VariablePredicate variablePredicate) { |
103 | | - return compileToDocument(schema, operationKind, operationName, topLevelFields, Map.of(), variablePredicate); |
| 104 | + return compileToDocument(schema, operationKind, operationName, topLevelFields, LinkedHashMapFactory.of(), variablePredicate); |
104 | 105 | } |
105 | 106 |
|
106 | 107 | /** |
@@ -151,7 +152,7 @@ public static CompilerResult compileToDocumentWithDeferSupport(@NonNull GraphQLS |
151 | 152 | @NonNull List<ExecutableNormalizedField> topLevelFields, |
152 | 153 | @Nullable VariablePredicate variablePredicate |
153 | 154 | ) { |
154 | | - return compileToDocumentWithDeferSupport(schema, operationKind, operationName, topLevelFields, Map.of(), variablePredicate); |
| 155 | + return compileToDocumentWithDeferSupport(schema, operationKind, operationName, topLevelFields, LinkedHashMapFactory.of(), variablePredicate); |
155 | 156 | } |
156 | 157 |
|
157 | 158 | /** |
|
0 commit comments