Skip to content

Commit aa2fc36

Browse files
committed
#23 Document Requirement for Null Values
Signed-off-by: Sven Strittmatter <sven.strittmatter@iteratec.com>
1 parent c238d4a commit aa2fc36

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/main/java/io/securecodebox/persistence/defectdojo/model/PaginatedResult.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,21 @@ public final class PaginatedResult<T extends Model> {
2525

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

3335
/**
3436
* TODO: What does this contain? I would expect a number for the previous page.
37+
* <p>
38+
* This is {@code null} if there is no next page.
39+
* </p>
3540
*/
3641
@JsonProperty
37-
private String previous = "";
42+
private String previous;
3843

3944
@JsonProperty
4045
private List<T> results = new ArrayList<>();

0 commit comments

Comments
 (0)