Skip to content

Commit

Permalink
Merge pull request #415 from checkmarx-ltd/develop
Browse files Browse the repository at this point in the history
new similarity id
  • Loading branch information
itsKedar authored Aug 1, 2024
2 parents 97a4bec + 0695757 commit 9446092
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.github.checkmarx-ltd</groupId>
<artifactId>cx-spring-boot-sdk</artifactId>
<version>0.6.12</version>
<version>0.6.13</version>


<name>cx-spring-boot-sdk</name>
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/checkmarx/sdk/service/CxService.java
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,9 @@ private void prepareIssuesRemoveDuplicates(List<ScanResults.XIssue> cxIssueList,
String newIssueDescription = issue.getDescription();
String existingSimilarityId = existingIssue.getSimilarityId();
String newSimilarityId = issue.getSimilarityId();
existingIssue.setSimilarityId(existingSimilarityId + ", " + newSimilarityId);
if((existingSimilarityId!=null) && (!existingSimilarityId.contains(newSimilarityId))){
existingIssue.setSimilarityId(existingSimilarityId + ", " + newSimilarityId);
}
if (!existingIssueDescription.contains(newIssueDescription)) {
stringBuilder.append(existingIssueDescription).append("\r\n").append("\r\n").append(newIssueDescription);
cxIssueList.get(cxIssueList.indexOf(issue)).setDescription(stringBuilder.toString());
Expand Down

0 comments on commit 9446092

Please sign in to comment.