Skip to content

Commit 4cc2ba3

Browse files
author
Gilbert Handy
committed
Return unsorted vulnerabilities in new HashSet, avoiding CoMod
1 parent b9383c1 commit 4cc2ba3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/org/owasp/dependencycheck/dependency/Dependency.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ public synchronized Set<Vulnerability> getVulnerabilities(boolean sorted) {
625625
if (sorted) {
626626
vulnerabilitySet = new TreeSet<>(vulnerabilities);
627627
} else {
628-
vulnerabilitySet = vulnerabilities;
628+
vulnerabilitySet = new HashSet<>(vulnerabilities);
629629
}
630630
return Collections.unmodifiableSet(vulnerabilitySet);
631631
}

0 commit comments

Comments
 (0)