private void addReferenceToVulnerability ( String parentName , Vulnerability vulnerability , String nextLine ) { final String url = nextLine . substring ( "URL: " . length ( ) ) ; if ( null != vulnerability ) { final Reference ref = new Reference ( ) ; ref . setName ( vulnerability . getName ( ) ) ; ref . setSource ( "bundle-audit" ) ; ref . setUrl ( url ) ; vulnerability . getReferences ( ) . add ( ref ) ; } LOGGER . debug ( "bundle-audit ({}): {}" , parentName , nextLine ) ; }
Adds a reference to the vulnerability .