One way to fix https://github.com/DependencyTrack/dependency-track/issues/3834 and make vulnerabilities elements in BOMs and VEXs unique, is to make Vulnerability objects comparable to one another on a fields basis. To get this, we need custom equals and hashCode methods.
One way to fix https://github.com/DependencyTrack/dependency-track/issues/3834 and make
vulnerabilities
elements in BOMs and VEXs unique, is to make Vulnerability objects comparable to one another on a fields basis. To get this, we need customequals
andhashCode
methods.This would be part of the fix to the above issue I'm working on in the PR https://github.com/DependencyTrack/dependency-track/pull/3948.