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
10 changes: 5 additions & 5 deletions src/main/java/com/checkmarx/ast/wrapper/CxWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public List<String> projectBranches(@NonNull UUID projectId, String filter)
line -> CxBaseObject.parse(line, BRANCHES_TYPE));
}

public List<CodeBashing> codeBashingList(@NonNull String cweId,@NonNull String language,@NonNull String queryName) throws IOException, InterruptedException, CxException {
public List<CodeBashing> codeBashingList(@NonNull String cweId, @NonNull String language, @NonNull String queryName) throws IOException, InterruptedException, CxException {
this.logger.info("Fetching the codebashing link");

List<String> arguments = new ArrayList<>();
Expand Down Expand Up @@ -276,16 +276,16 @@ public int getResultsBfl(@NonNull UUID scanId, @NonNull String queryId, List<Nod
}

private int getIndexOfBfLNode(List<Node> bflNodes, List<Node> resultNodes) {
int bflNodeIndex = -1;

int bflNodeNotFound = -1;
for (Node bflNode : bflNodes) {
for (Node resultNode : resultNodes) {
if (bflNode.equals(resultNode)) {
bflNodeIndex = resultNodes.indexOf(resultNode);
return resultNodes.indexOf(resultNode);
}
}
}
return bflNodeIndex;
return bflNodeNotFound;
}

private List<String> withConfigArguments(List<String> commands) {
Expand Down