changed saveEntry to a private method

Former-commit-id: 25cc3dc1b825772c0ad56b0f5e66ff94fa6c215a
This commit is contained in:
Jeremy Long
2013-10-10 18:20:59 -04:00
parent 9aa76bd088
commit aba2a9f504

View File

@@ -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;
} }