Optimized imports and updated doc.
package eu.fasten.analyzer.vulnerabilitystatementsprocessor.db;
import com.google.gson.Gson;
-import eu.fasten.core.data.vulnerability.Purl;
-import eu.fasten.core.data.vulnerability.Vulnerability;
import eu.fasten.analyzer.vulnerabilitystatementsprocessor.utils.Cache;
import eu.fasten.core.data.Constants;
import eu.fasten.core.data.metadatadb.codegen.tables.Callables;
@@ -29,6 +27,8 @@ import eu.fasten.core.data.metadatadb.codegen.tables.ModuleContents;
import eu.fasten.core.data.metadatadb.codegen.tables.Modules;
import eu.fasten.core.data.metadatadb.codegen.tables.PackageVersions;
import eu.fasten.core.data.metadatadb.codegen.tables.Packages;
+import eu.fasten.core.data.vulnerability.Purl;
+import eu.fasten.core.data.vulnerability.Vulnerability;
import org.jooq.DSLContext;
import org.jooq.JSONB;
import org.jooq.Record1;
@@ -42,7 +42,6 @@ import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
-import java.util.Objects;
import java.util.stream.Collectors;
import static eu.fasten.core.utils.FastenUriUtils.generateFullFastenUri;
@@ -60,7 +59,7 @@ public class MetadataUtility {
* Looks for Unique Base PURLs and find the corresponding package ID.
*
* @param context - DSL Context
- * @param v - Vulnerability Object
+ * @param purls - Purls of the vulnerability
* @return Map (basePURL --> pkgId)
*/
public HashMap<String, Long> getPackageIds(DSLContext context, LinkedHashSet<Purl> purls) {
