From 33992dc3876e26ca06a6030a62fc34ae4ff0c7b7 Mon Sep 17 00:00:00 2001 From: Patrick Strawderman Date: Fri, 3 Nov 2023 11:01:01 -0700 Subject: [PATCH] Initialize additionalInformation with emptyMap in GraphQLErrorDebugInfo Initialize the additionalInformation parameter with emptyMap() instead of allocating a new HashMap. --- .../main/kotlin/com/netflix/graphql/dgs/client/GraphQLError.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphql-dgs-client/src/main/kotlin/com/netflix/graphql/dgs/client/GraphQLError.kt b/graphql-dgs-client/src/main/kotlin/com/netflix/graphql/dgs/client/GraphQLError.kt index 77a92ad56..1c1f14ff1 100644 --- a/graphql-dgs-client/src/main/kotlin/com/netflix/graphql/dgs/client/GraphQLError.kt +++ b/graphql-dgs-client/src/main/kotlin/com/netflix/graphql/dgs/client/GraphQLError.kt @@ -48,7 +48,7 @@ data class GraphQLErrorDebugInfo( @JsonProperty val subquery: String = "", @JsonProperty val variables: Map = emptyMap(), @JsonAnySetter @get:JsonAnyGetter - val additionalInformation: Map = hashMapOf() + val additionalInformation: Map = emptyMap() ) /**