Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/main/java/com/checkmarx/ast/wrapper/CxWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,12 @@ public Results results(@NonNull UUID scanId) throws IOException, InterruptedExce
.readValue(results(scanId, ReportFormat.json));
}

public Results results(@NonNull UUID scanId, String agent) throws IOException, InterruptedException, CxException {
return new ObjectMapper()
.readerFor(Results.class)
.readValue(results(scanId, ReportFormat.json, agent));
}

public String results(@NonNull UUID scanId, ReportFormat reportFormat)
throws IOException, InterruptedException, CxException {
return results(scanId, reportFormat, null);
Expand Down