From ffb186de7ed572fb3813d31cccf67c254878a5fe Mon Sep 17 00:00:00 2001 From: Sven Strittmatter Date: Fri, 2 Feb 2024 15:38:23 +0100 Subject: [PATCH] #23 Document Requirement for Null Values Signed-off-by: Sven Strittmatter --- .../persistence/defectdojo/model/PaginatedResult.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/securecodebox/persistence/defectdojo/model/PaginatedResult.java b/src/main/java/io/securecodebox/persistence/defectdojo/model/PaginatedResult.java index 27e29c04..4137f915 100644 --- a/src/main/java/io/securecodebox/persistence/defectdojo/model/PaginatedResult.java +++ b/src/main/java/io/securecodebox/persistence/defectdojo/model/PaginatedResult.java @@ -25,16 +25,21 @@ public final class PaginatedResult { /** * 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. + *

+ * This is {@code null} if there is no next page. + *

*/ @JsonProperty private String next; /** * TODO: What does this contain? I would expect a number for the previous page. + *

+ * This is {@code null} if there is no next page. + *

*/ @JsonProperty - private String previous = ""; + private String previous; @JsonProperty private List results = new ArrayList<>();