Skip to content

Commit

Permalink
chore: use custom rely
Browse files Browse the repository at this point in the history
  • Loading branch information
pipinet committed Oct 18, 2024
1 parent c5ab8b8 commit ed1c655
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
@EqualsAndHashCode
public class Connection<T> {
@NotNull
private final ImmutableList<Edge<T>> edges;
private final ImmutableList<@NotNull Edge<T>> edges;
@NotNull
private final PageInfo pageInfo;
@NotNull
private final Long totalCount;

public Connection(List<@NotNull Edge<@NotNull T>> edges,
public Connection(List<@NotNull Edge<T>> edges,
PageInfo pageInfo,
Long totalCount) {
this.edges = ImmutableList.copyOf(Assert.assertNotNull(edges, () -> "edges cannot be null"));
Expand Down
2 changes: 2 additions & 0 deletions graphql/src/main/java/com/qwlabs/graphql/relay/PageInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ public class PageInfo {
private final String startCursor;
@NotNull
private final String endCursor;
@NotNull
private final boolean hasPreviousPage;
@NotNull
private final boolean hasNextPage;

public PageInfo(String startCursor, String endCursor,
Expand Down

0 comments on commit ed1c655

Please sign in to comment.