From aba2a9f504645a1dbaf7537f13ca11931619e33e Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Thu, 10 Oct 2013 18:20:59 -0400 Subject: [PATCH] changed saveEntry to a private method Former-commit-id: 25cc3dc1b825772c0ad56b0f5e66ff94fa6c215a --- .../owasp/dependencycheck/data/nvdcve/NvdCve20Handler.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/data/nvdcve/NvdCve20Handler.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/data/nvdcve/NvdCve20Handler.java index da5686320..aa9c06ed5 100644 --- a/dependency-check-core/src/main/java/org/owasp/dependencycheck/data/nvdcve/NvdCve20Handler.java +++ b/dependency-check-core/src/main/java/org/owasp/dependencycheck/data/nvdcve/NvdCve20Handler.java @@ -241,9 +241,7 @@ public class NvdCve20Handler extends DefaultHandler { } /** - * Saves a vulnerability to the CVE Database. This is a callback method - * called by the Sax Parser Handler - * {@link org.owasp.dependencycheck.data.nvdcve.xml.NvdCve20Handler}. + * Saves a vulnerability to the CVE Database. * * @param vuln the vulnerability to store in the database * @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 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) { return; }