Skip to content

Commit 11161c1

Browse files
committed
Remove deprecated API
Signed-off-by: Sven Strittmatter <sven.strittmatter@iteratec.com>
1 parent 9e38a6a commit 11161c1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,10 @@
3434
public class ImportScanService2 {
3535

3636
private final Config config;
37-
@Deprecated
38-
protected String defectDojoUrl;
39-
@Deprecated
40-
protected String defectDojoApiKey;
4137

4238
public ImportScanService2(Config config) {
4339
super();
4440
this.config = config;
45-
this.defectDojoUrl = config.getUrl();
46-
this.defectDojoApiKey = config.getApiKey();
4741
}
4842

4943
/**
@@ -96,7 +90,7 @@ public String getFilename() {
9690

9791
var payload = new HttpEntity<>(mvn, headers);
9892

99-
return restTemplate.exchange(defectDojoUrl + "/api/v2/" + endpoint + "/", HttpMethod.POST, payload, ImportScanResponse.class).getBody();
93+
return restTemplate.exchange(config.getUrl() + "/api/v2/" + endpoint + "/", HttpMethod.POST, payload, ImportScanResponse.class).getBody();
10094
} catch (HttpClientErrorException e) {
10195
throw new PersistenceException("Failed to attach findings to engagement.");
10296
}

0 commit comments

Comments
 (0)