Skip to content

Commit 35fa07c

Browse files
committed
default is empty array of possible types
1 parent c996a3f commit 35fa07c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/graphql/annotations/annotationTypes/GraphQLUnion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
@Target(ElementType.TYPE)
2626
@Retention(RetentionPolicy.RUNTIME)
2727
public @interface GraphQLUnion {
28-
Class<?>[] possibleTypes();
28+
Class<?>[] possibleTypes() default {};
2929

3030
Class<? extends TypeResolver> typeResolver() default UnionTypeResolver.class;
3131
}

0 commit comments

Comments
 (0)