Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit ea33bda

Browse files
fix(#5): compile error on Java 8
1 parent d37d5b9 commit ea33bda

File tree

1 file changed

+2
-2
lines changed
  • graphql-kickstart-spring-boot-autoconfigure-graphql-annotations/src/test/java/graphql/kickstart/graphql/annotations/test/custom/relay

1 file changed

+2
-2
lines changed

graphql-kickstart-spring-boot-autoconfigure-graphql-annotations/src/test/java/graphql/kickstart/graphql/annotations/test/custom/relay/TestQuery.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
import graphql.annotations.connection.PaginatedData;
77
import graphql.kickstart.tools.GraphQLQueryResolver;
88

9-
import java.util.List;
9+
import java.util.Collections;
1010

1111
public class TestQuery implements GraphQLQueryResolver {
1212

1313
@GraphQLField
1414
@GraphQLConnection
1515
public static PaginatedData<TestModel> somePaginatedValue() {
16-
return new AbstractPaginatedData<>(false, false, List.of(new TestModel("some value"))) {
16+
return new AbstractPaginatedData<TestModel>(false, false, Collections.singletonList(new TestModel("some value"))) {
1717
@Override
1818
public String getCursor(final TestModel entity) {
1919
return "test cursor";

0 commit comments

Comments
 (0)