public synchronized Set < Vulnerability > getSuppressedVulnerabilities ( boolean sorted ) { final Set < Vulnerability > vulnerabilitySet ; if ( sorted ) { vulnerabilitySet = new TreeSet <> ( suppressedVulnerabilities ) ; } else { vulnerabilitySet = suppressedVulnerabilities ; } return Collections . unmodifiableSet ( vulnerabilitySet ) ; }
Get an unmodifiable optionally sorted . set of suppressedVulnerabilities .