finding.setVulnerability(vuln);
}
private static GenericSeverity getHigherSeverity(Finding finding, Vulnerability vuln) {
GenericSeverity
findingSeverity = getGenericSeverity(finding),
vulnSeverity = vuln.getGenericSeverity(),
returnSeverity = null;
if (findingSeverity != null) {
if (vulnSeverity == null) {
returnSeverity = findingSeverity;
} else if (vulnSeverity.getIntValue() != null &&
findingSeverity.getIntValue() != null &&
vulnSeverity.getIntValue() < findingSeverity.getIntValue()) {
returnSeverity = findingSeverity;
}
}
if (returnSeverity == null) {