Minimize revision artifact to string concatination
@@ -243,15 +243,16 @@ public class VulnerabilityCacheProcessorPlugin extends Plugin {
var revision = new Revision(id, groupId, artifactId, version, new Timestamp(timestamp));
logger.info("Processing revision: " + revision.toString());
+ logger.info("graphDao: " + (graphDao != null));
+ logger.info("dbContext: " + (dbContext != null));
+ logger.info("kbDao: " + (kbDao != null));
+ logger.info("graphResolver: " + (graphResolver != null));
+
var depSet = graphResolver.resolveDependencies(revision, dbContext, true);
var depIds = depSet.stream().map(r -> r.id).collect(Collectors.toSet());
var vulnerableDependencies = kbDao.findVulnerablePackageVersions(depIds);
var databaseMerger = new CGMerger(depIds, dbContext, graphDao);
- var graph = databaseMerger.mergeWithCHA(revision.product().toString() + Constants.mvnCoordinateSeparator + revision.version.toString());
-
- logger.info("Graph Sizer: " + graph.numNodes());
- logger.info("Deps: " + vulnerableDependencies.size());
-
+ var graph = databaseMerger.mergeWithCHA(revision.toString());
var vulnerabilities = kbDao.findVulnerableCallables(vulnerableDependencies, graph.nodes());
var internalCallables = kbDao.getPackageInternalCallableIDs(revision.product().toString(), revision.version.toString());
