We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ae4f44 commit 2c2f14eCopy full SHA for 2c2f14e
src/main/java/io/securecodebox/persistence/defectdojo/model/PaginatedResult.java
@@ -7,6 +7,7 @@
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import lombok.Data;
9
10
+import java.util.ArrayList;
11
import java.util.List;
12
13
/**
@@ -19,12 +20,16 @@ public final class PaginatedResult<T extends Model> {
19
20
@JsonProperty
21
private int count;
22
23
+ /**
24
+ * TODO: What does this contain? I would expect a number for the next page.
25
+ * FIXME: If this provides an empty string to prevent NPE, then UserProfileServiceTest fails.
26
+ */
27
28
private String next;
29
30
- private String previous;
31
+ private String previous = "";
32
33
- private List<T> results;
34
+ private List<T> results = new ArrayList<>();
35
}
0 commit comments