javadoc update

This commit is contained in:
Jeremy Long
2017-12-09 08:14:21 -05:00
parent 63a2874cec
commit 1e72c49eb2

View File

@@ -42,7 +42,6 @@ import static org.owasp.dependencycheck.data.nvdcve.CveDB.PreparedStatementCveDb
//CSOFF: AvoidStarImport
//CSON: AvoidStarImport
/**
* The database holding information about the NVD CVE data. This class is safe
* to be accessed from multiple threads in parallel, however internally only one
@@ -502,6 +501,7 @@ public final class CveDB implements AutoCloseable {
* the code.
* <p>
* It should be also called when DB is closed.
* </p>
*/
private synchronized void clearCache() {
vulnerabilitiesForCpeCache.clear();
@@ -846,7 +846,8 @@ public final class CveDB implements AutoCloseable {
}
/**
* Executes batch inserts of vulnerabilities when property database.batchinsert.maxsize is reached
* Executes batch inserts of vulnerabilities when property
* database.batchinsert.maxsize is reached
*
* @param pVulnerability
* @param pVulnerableSoftware
@@ -1037,6 +1038,7 @@ public final class CveDB implements AutoCloseable {
* This method is only referenced in unused code.
* <p>
* Deletes unused dictionary entries from the database.
* </p>
*/
public synchronized void deleteUnusedCpe() {
clearCache();
@@ -1056,6 +1058,7 @@ public final class CveDB implements AutoCloseable {
* MySQL if ever used due to the MERGE statement.
* <p>
* Merges CPE entries into the database.
* </p>
*
* @param cpe the CPE identifier
* @param vendor the CPE vendor