File tree Expand file tree Collapse file tree
src/main/java/io/securecodebox/persistence/defectdojo/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77import lombok .Data ;
88
9- // TODO: Why we do not have as many annotations as the other models here?
10- // TODO: Why does this class does not implement Model?
9+ /**
10+ * DTO to upload a secureCodeBox scan file
11+ * <p>
12+ * This is not a JSON model – thus not implementing the Model interface – because it is only used as DTO for the
13+ * multi-part form upload.
14+ * </p>
15+ */
1116@ Data
1217public final class ScanFile {
1318 /**
@@ -18,8 +23,17 @@ public final class ScanFile {
1823 */
1924 private static final String DEFAULT_NAME = "default-name.txt" ;
2025
26+ /**
27+ * The file content.
28+ */
2129 private String content ;
2230
31+ /**
32+ * Name of file.
33+ * <p>
34+ * Defaults to {@link #DEFAULT_NAME}.
35+ * </p>
36+ */
2337 private String name ;
2438
2539 public ScanFile (String content ) {
You can’t perform that action at this time.
0 commit comments