Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: secureCodeBox/defectdojo-client-java
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 161a9faae57b3dd7d54708960b5f4287bbf6a537
Choose a base ref
..
head repository: secureCodeBox/defectdojo-client-java
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 601d6ceb606881ebe731df2c899879d0d88ca579
Choose a head ref
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/main/java/io/securecodebox/persistence/defectdojo/service/FindingService.java
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@
import io.securecodebox.persistence.defectdojo.model.Finding;
import io.securecodebox.persistence.defectdojo.model.PaginatedResult;

import java.net.URISyntaxException;
import java.util.List;
import java.util.Map;

@@ -40,7 +39,7 @@ protected PaginatedResult<Finding> deserializeList(String response) {
}
}

public List<Finding> getUnhandledFindingsForProduct(long productId, Finding.Severity minimumSeverity) throws URISyntaxException, JsonProcessingException {
public List<Finding> getUnhandledFindingsForProduct(long productId, Finding.Severity minimumSeverity) {
final Map<String, Object> queryParams = Map.of(
"test__engagement__product", Long.toString(productId),
"active", Boolean.toString(true));
@@ -51,7 +50,7 @@ public List<Finding> getUnhandledFindingsForProduct(long productId, Finding.Seve
.toList();
}

public List<Finding> getUnhandledFindingsForEngagement(long engagementId, Finding.Severity minimumSeverity) throws URISyntaxException, JsonProcessingException {
public List<Finding> getUnhandledFindingsForEngagement(long engagementId, Finding.Severity minimumSeverity) {
final Map<String, Object> queryParams = Map.of(
"test__engagement", Long.toString(engagementId),
"active", Boolean.toString(true));