Skip to content

Commit

Permalink
Initialize additionalInformation with emptyMap in GraphQLErrorDebugInfo
Browse files Browse the repository at this point in the history
Initialize the additionalInformation parameter with emptyMap() instead of allocating
a new HashMap.
  • Loading branch information
kilink committed Nov 3, 2023
1 parent e726e3b commit 33992dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ data class GraphQLErrorDebugInfo(
@JsonProperty val subquery: String = "",
@JsonProperty val variables: Map<String, Any> = emptyMap(),
@JsonAnySetter @get:JsonAnyGetter
val additionalInformation: Map<String, Any> = hashMapOf()
val additionalInformation: Map<String, Any> = emptyMap()
)

/**
Expand Down

0 comments on commit 33992dc

Please sign in to comment.