We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5582097 commit 5b0c192Copy full SHA for 5b0c192
1 file changed
src/main/java/graphql/execution/CoercedVariables.java
@@ -11,6 +11,7 @@
11
*/
12
@PublicApi
13
public class CoercedVariables {
14
+ private static final CoercedVariables EMPTY = new CoercedVariables(ImmutableKit.emptyMap());
15
private final ImmutableMapWithNullValues<String, Object> coercedVariables;
16
17
public CoercedVariables(Map<String, Object> coercedVariables) {
@@ -30,7 +31,7 @@ public Object get(String key) {
30
31
}
32
33
public static CoercedVariables emptyVariables() {
- return new CoercedVariables(ImmutableKit.emptyMap());
34
+ return EMPTY;
35
36
37
public static CoercedVariables of(Map<String, Object> coercedVariables) {
0 commit comments