public List < VulnerableSoftware > getVulnerableSoftware ( boolean sorted ) { final List < VulnerableSoftware > sortedVulnerableSoftware = new ArrayList <> ( this . vulnerableSoftware ) ; if ( sorted ) { Collections . sort ( sortedVulnerableSoftware ) ; } return sortedVulnerableSoftware ; }
Returns a sorted list of vulnerable software . This is primarily used for display within reports .