mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 08:39:24 +01:00
changed saveEntry to a private method
Former-commit-id: 25cc3dc1b825772c0ad56b0f5e66ff94fa6c215a
This commit is contained in:
@@ -241,9 +241,7 @@ public class NvdCve20Handler extends DefaultHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Saves a vulnerability to the CVE Database. This is a callback method
|
* Saves a vulnerability to the CVE Database.
|
||||||
* called by the Sax Parser Handler
|
|
||||||
* {@link org.owasp.dependencycheck.data.nvdcve.xml.NvdCve20Handler}.
|
|
||||||
*
|
*
|
||||||
* @param vuln the vulnerability to store in the database
|
* @param vuln the vulnerability to store in the database
|
||||||
* @throws DatabaseException thrown if there is an error writing to the
|
* @throws DatabaseException thrown if there is an error writing to the
|
||||||
@@ -251,7 +249,7 @@ public class NvdCve20Handler extends DefaultHandler {
|
|||||||
* @throws CorruptIndexException is thrown if the CPE Index is corrupt
|
* @throws CorruptIndexException is thrown if the CPE Index is corrupt
|
||||||
* @throws IOException thrown if there is an IOException with the CPE Index
|
* @throws IOException thrown if there is an IOException with the CPE Index
|
||||||
*/
|
*/
|
||||||
public void saveEntry(Vulnerability vuln) throws DatabaseException, CorruptIndexException, IOException {
|
private void saveEntry(Vulnerability vuln) throws DatabaseException, CorruptIndexException, IOException {
|
||||||
if (cveDB == null) {
|
if (cveDB == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user