Skip to content

Commit 950f46f

Browse files
committed
#36 Add some FIXME tags so we remember where to do further refactorings
Signed-off-by: Sven Strittmatter <sven.strittmatter@iteratec.com>
1 parent d356905 commit 950f46f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/io/securecodebox/persistence/defectdojo/service/ImportScanService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,10 @@ public String getFilename() {
120120
}
121121
};
122122

123+
// FIXME Why do we add the whole byte array resiurce here as object? Is not simply the file name sufficient here? Then we could use <String, String>
123124
body.add("file", contentsAsResource);
124125

126+
// FIXME: We do not define the the type T of the body here!
125127
final var payload = new HttpEntity<>(body, headers);
126128

127129
return restTemplate.exchange(defectDojoUrl + "/api/v2/" + endpoint + "/", HttpMethod.POST, payload, ImportScanResponse.class).getBody();

0 commit comments

Comments
 (0)