Skip to content

Commit

Permalink
#23 Document Requirement for Null Values
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Strittmatter <[email protected]>
  • Loading branch information
Weltraumschaf committed Feb 2, 2024
1 parent 827d029 commit ffb186d
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,21 @@ public final class PaginatedResult<T extends Model> {

/**
* TODO: What does this contain? I would expect a number for the next page.
* FIXME: If this provides an empty string to prevent NPE, then UserProfileServiceTest fails.
* <p>
* This is {@code null} if there is no next page.
* </p>
*/
@JsonProperty
private String next;

/**
* TODO: What does this contain? I would expect a number for the previous page.
* <p>
* This is {@code null} if there is no next page.
* </p>
*/
@JsonProperty
private String previous = "";
private String previous;

@JsonProperty
private List<T> results = new ArrayList<>();
Expand Down

0 comments on commit ffb186d

Please sign in to comment.