1212import lombok .Data ;
1313import lombok .Getter ;
1414import lombok .NonNull ;
15+ import org .springframework .util .LinkedMultiValueMap ;
1516import org .springframework .util .MultiValueMap ;
1617
1718/**
@@ -28,11 +29,15 @@ default ImportScanService createDefault(@NonNull DefectDojoConfig config) {
2829 return new DefaultImportScanService (config );
2930 }
3031
31- ImportScanResponse importScan (ScanFile scanFile , long engagementId , long lead , String currentDate , ScanType scanType , long testType );
32+ default ImportScanResponse importScan (ScanFile scanFile , long engagementId , long lead , String currentDate , ScanType scanType , long testType ) {
33+ return this .importScan (scanFile , engagementId , lead , currentDate , scanType , testType , new LinkedMultiValueMap <>());
34+ }
3235
3336 ImportScanResponse importScan (ScanFile scanFile , long engagementId , long lead , String currentDate , ScanType scanType , long testType , MultiValueMap <String , String > options );
3437
35- ImportScanResponse reimportScan (ScanFile scanFile , long testId , long lead , String currentDate , ScanType scanType , long testType );
38+ default ImportScanResponse reimportScan (ScanFile scanFile , long testId , long lead , String currentDate , ScanType scanType , long testType ) {
39+ return this .reimportScan (scanFile , testId , lead , currentDate , scanType , testType , new LinkedMultiValueMap <>());
40+ }
3641
3742 ImportScanResponse reimportScan (ScanFile scanFile , long testId , long lead , String currentDate , ScanType scanType , long testType , MultiValueMap <String , String > options );
3843
0 commit comments