Skip to content

Commit ae4bef6

Browse files
committed
#36 Use same var name as in createFindings method
Signed-off-by: Sven Strittmatter <sven.strittmatter@iteratec.com>
1 parent 85ca0eb commit ae4bef6

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

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

+12-12
Original file line numberDiff line numberDiff line change
@@ -131,29 +131,29 @@ public String getFilename() {
131131
}
132132

133133
public ImportScanResponse importScan(ScanFile scanFile, long engagementId, long lead, String currentDate, ScanType scanType, long testType) {
134-
var additionalValues = new LinkedMultiValueMap<String, Object>();
135-
additionalValues.add("engagement", Long.toString(engagementId)); // FIXME Seems to be duplicated.
134+
final var options = new LinkedMultiValueMap<String, Object>();
135+
options.add("engagement", Long.toString(engagementId)); // FIXME Seems to be duplicated.
136136

137-
return this.importScan(scanFile, engagementId, lead, currentDate, scanType, testType, additionalValues);
137+
return this.importScan(scanFile, engagementId, lead, currentDate, scanType, testType, options);
138138
}
139139

140-
public ImportScanResponse importScan(ScanFile scanFile, long engagementId, long lead, String currentDate, ScanType scanType, long testType, LinkedMultiValueMap<String, Object> additionalValues) {
141-
additionalValues.add("engagement", Long.toString(engagementId));
140+
public ImportScanResponse importScan(ScanFile scanFile, long engagementId, long lead, String currentDate, ScanType scanType, long testType, LinkedMultiValueMap<String, Object> options) {
141+
options.add("engagement", Long.toString(engagementId));
142142

143-
return this.createFindings(scanFile, "import-scan", lead, currentDate, scanType, testType, additionalValues);
143+
return this.createFindings(scanFile, "import-scan", lead, currentDate, scanType, testType, options);
144144
}
145145

146146
public ImportScanResponse reimportScan(ScanFile scanFile, long testId, long lead, String currentDate, ScanType scanType, long testType) {
147-
var additionalValues = new LinkedMultiValueMap<String, Object>();
148-
additionalValues.add("test", Long.toString(testId)); // FIXME Seems to be duplicated.
147+
final var options = new LinkedMultiValueMap<String, Object>();
148+
options.add("test", Long.toString(testId)); // FIXME Seems to be duplicated.
149149

150-
return this.reimportScan(scanFile, testId, lead, currentDate, scanType, testType, additionalValues);
150+
return this.reimportScan(scanFile, testId, lead, currentDate, scanType, testType, options);
151151
}
152152

153-
public ImportScanResponse reimportScan(ScanFile scanFile, long testId, long lead, String currentDate, ScanType scanType, long testType, LinkedMultiValueMap<String, Object> additionalValues) {
154-
additionalValues.add("test", Long.toString(testId));
153+
public ImportScanResponse reimportScan(ScanFile scanFile, long testId, long lead, String currentDate, ScanType scanType, long testType, LinkedMultiValueMap<String, Object> options) {
154+
options.add("test", Long.toString(testId));
155155

156-
return this.createFindings(scanFile, "reimport-scan", lead, currentDate, scanType, testType, additionalValues);
156+
return this.createFindings(scanFile, "reimport-scan", lead, currentDate, scanType, testType, options);
157157
}
158158

159159
@Data

0 commit comments

Comments
 (0)