Skip to content

Commit 9d41e98

Browse files
committed
Fix build
1 parent e887ca1 commit 9d41e98

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/graphql/DirectivesUtil.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import graphql.util.FpKit;
1010

1111
import java.util.Collection;
12+
import java.util.Collections;
1213
import java.util.List;
1314
import java.util.Map;
1415
import java.util.Optional;
@@ -125,7 +126,7 @@ public static List<GraphQLAppliedDirective> toAppliedDirectives(Collection<Graph
125126
* A holder class that breaks a list of directives into maps to be more easily accessible in using classes
126127
*/
127128
public static class DirectivesHolder {
128-
private static final DirectivesHolder EMPTY_HOLDER = new DirectivesHolder();
129+
private static final DirectivesHolder EMPTY_HOLDER = new DirectivesHolder(Collections.emptyList(), Collections.emptyList());
129130

130131
private final ImmutableMap<String, List<GraphQLDirective>> allDirectivesByName;
131132
private final ImmutableMap<String, GraphQLDirective> nonRepeatableDirectivesByName;

0 commit comments

Comments
 (0)