Skip to content

Commit 11d1357

Browse files
committed
Switch existing Map.of usage to new linked hash map
1 parent de40420 commit 11d1357

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/graphql/normalized/ExecutableNormalizedOperationToAstCompiler.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import graphql.schema.GraphQLObjectType;
2525
import graphql.schema.GraphQLSchema;
2626
import graphql.schema.GraphQLUnmodifiedType;
27+
import graphql.util.LinkedHashMapFactory;
2728
import org.jspecify.annotations.NonNull;
2829
import org.jspecify.annotations.Nullable;
2930

@@ -100,7 +101,7 @@ public static CompilerResult compileToDocument(@NonNull GraphQLSchema schema,
100101
@Nullable String operationName,
101102
@NonNull List<ExecutableNormalizedField> topLevelFields,
102103
@Nullable VariablePredicate variablePredicate) {
103-
return compileToDocument(schema, operationKind, operationName, topLevelFields, Map.of(), variablePredicate);
104+
return compileToDocument(schema, operationKind, operationName, topLevelFields, LinkedHashMapFactory.of(), variablePredicate);
104105
}
105106

106107
/**
@@ -151,7 +152,7 @@ public static CompilerResult compileToDocumentWithDeferSupport(@NonNull GraphQLS
151152
@NonNull List<ExecutableNormalizedField> topLevelFields,
152153
@Nullable VariablePredicate variablePredicate
153154
) {
154-
return compileToDocumentWithDeferSupport(schema, operationKind, operationName, topLevelFields, Map.of(), variablePredicate);
155+
return compileToDocumentWithDeferSupport(schema, operationKind, operationName, topLevelFields, LinkedHashMapFactory.of(), variablePredicate);
155156
}
156157

157158
/**

0 commit comments

Comments
 (0)